Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to use in react native #77

Open
hamentmiglani opened this issue Jan 10, 2019 · 2 comments
Open

Not able to use in react native #77

hamentmiglani opened this issue Jan 10, 2019 · 2 comments

Comments

@hamentmiglani
Copy link

After installing in my react native code getting this error:
var aesjs = require('aes-js');
Unable to resolved module 'aes-js'
Module does not exist in module map or in these directories node_modules

@ricmoo
Copy link
Owner

ricmoo commented Feb 11, 2019

How are you installing this? It should certainly work as a standard npm module. If it is not in your node_modules, that seems like it is an issue with the toolchain you are using to install it, maybe your nvm is placing things in a global directory?

@SergiiNikolayev
Copy link

SergiiNikolayev commented Apr 2, 2019

@hamentmiglani
yarn add aes-js
or npm install aes-js --save

then import it:
import aesjs from "aes-js";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants