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

Module not found: Error: Can't resolve 'crypto' #5

Open
Krevik opened this issue Feb 25, 2022 · 1 comment
Open

Module not found: Error: Can't resolve 'crypto' #5

Krevik opened this issue Feb 25, 2022 · 1 comment

Comments

@Krevik
Copy link

Krevik commented Feb 25, 2022

So basically I am watching the tutorial and trying to get this whole app to work. WIthout success cause I am getting errors while opening "localhost:3000".
image
. I was trying to install all the missing packages using both npm install "crypto-browserify" and yarn add "crypto-browserify".
I am also having errors with packages "stream-http" "https-browserify" "stream-http" "os-browserify" . Of course I was looking for the answer in google but no success. What can I do to fix that problem?

Yarn version:
1.22.15
Node version:
16.14.0
Compiler version:
0.8.1 - it was giving errors with 0.8.0 and screaming at me I should use 0.8.1

@Krevik
Copy link
Author

Krevik commented Feb 25, 2022

Potentially solved the problem. I will give here the solution so I guess it might be usefull for someone.
Just two commands:

  1. yarn remove react-scripts
  2. yarn add [email protected]

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

1 participant