-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Installed the module using npm install node-bank, and imported it on my React Native project. Here's my code:
await nubank.start();
await nubank.login({ cpf: 'mycpf', pass: 'mypass' });
let arr = await nubank.events.findAll();
console.warn(arr);So far so good, but here's the catch: when I run the app, it says it can't find the crypto module. I installed it with npm i crypto and tried to run it again. Here's what I got:
error: bundling failed: Error: While trying to resolve module `crypto` from file `/home/saulo/Projetos/PersonalProjects/monyie-react/node_modules/request/lib/helpers.js`, the package `/home/saulo/Projetos/PersonalProjects/monyie-react/node_modules/crypto/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/home/saulo/Projetos/PersonalProjects/monyie-react/node_modules/crypto/index.js`. Indeed, none of these files exist:
* /home/saulo/Projetos/PersonalProjects/monyie-react/node_modules/crypto/index.js(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)
* /home/saulo/Projetos/PersonalProjects/monyie-react/node_modules/crypto/index.js/index(.native|.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)How should I proceed? Thanks in advance.
Metadata
Metadata
Assignees
Labels
No labels