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

Webpack 5 breaking changes or process not defined #2

Open
AmanRaj1608 opened this issue Jul 20, 2022 · 1 comment
Open

Webpack 5 breaking changes or process not defined #2

AmanRaj1608 opened this issue Jul 20, 2022 · 1 comment

Comments

@AmanRaj1608
Copy link
Contributor

If you have bootstrapped a new repo with CRA or any other libs which are using webpack, you might face

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

There are 2 fix for this

  • Use "react-scripts": "4.0.3" or other libs which uses webpack 4 inside. But for React, you might face process not defined while development.
  • Another solution is to configure webpack 5 using react-app-rewired

Fix #1

@Deveshb15
Copy link

is this still not fixed? react-scripts 4.0.3 has a breaking change of type module
facebook/create-react-app#11865

doesn't it still not work with react 18 or more specifically webpack5?

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

2 participants