-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Error: Unable to resolve module crypto
from
#273
Comments
I have this same issue, with the same version, running node v12.16.1. This is in an Angular 9 project. The
|
I am having the same issue (Angular 9) Module not found: Can't resolve 'crypto' in '..../node_modules/crypto-js' |
+1 I am having the same issue (React-Native 0.60) |
I am having the same issue (Angular 9) WARNING in ./node_modules/crypto-js/core.js |
resolved use "crypto-js": "3.1.9-1" |
using version 4.0.0, still there's the same problem |
the latest version v4.0.0 has used secure random module, but reactive-native doesn't have the so if you want to use crypto-js in |
|
thank you
…------------------ 原始邮件 ------------------
发件人: "huqi"<[email protected]>;
发送时间: 2020年3月30日(星期一) 中午12:47
收件人: "brix/crypto-js"<[email protected]>;
抄送: "1989329376"<[email protected]>; "Author"<[email protected]>;
主题: Re: [brix/crypto-js] Error: Unable to resolve module `crypto` from (#273)
the latest version v4.0.0 has used secure random module, but reactive-native doesn't have the crypto module, the owner @evanvosberg is trying to fix this issue, detail in #259 , but still has some problem.
so if you want to use crypto-js in react-native project, v3.1.9-1(or before) is a temporary choice before this issue has been fixed.
I am having the same issue (React-Native 0.62)
I try to install ** v3.1.9-1** and it will work
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
If the issues caused by secure radom of crypto-js 4.0 bother you, such as too large bundle, unavalible in React Native... Maybe you can try crypto-es . We merged all updates of crypto-js 4.0 except the secure radom. |
Having this issue while setting up a react-native project, would be great to see a fix for this. |
Me too, but the solutions that people shared solved the issue. |
crypto-js use version @4.0.0
My project is reactnative,I'm just do...
npm install —-save crypto-js
import MD5 from 'crypto-js/md5'
And then,Is an error,The following information:
error: bundling failed: Error: Unable to resolve module
crypto
fromnode_modules/crypto-js/core.js
: crypto could not be found within the project.Please tell me what I should do,,Thank you very mucha
The text was updated successfully, but these errors were encountered: