-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Webpack5 support for create-react-app #5031
Comments
I think I'm hitting this issue right now. Is there a known workaround? I used create-react-app then added web3 to package.json, and I don't understand the resulting errors:
"If you want to include a polyfill..." but I don't want to do that...I assume some library that I'm using (web3?) is doing this? There are also
Based on the title of this ticket, is the solution to move to webpack 4? |
@limitedAtonement Hey we have a PR that will fix this issue #5274 , it'll be merged in a few weeks for next version so in the meantime to fix it: go to your
|
Thank you for the help! I removed |
Hi there! dont remove web3 from your dependencies. and if you added the browser line in your |
(from discord conversation) I was adjusting my project's
and it appears to have the desired effect. Thank you! |
When a user uses the create-react-app to make their React project, it comes pre bundled with webpack 5. The scope will be to ensure that web3.js can be successfully bundled using webpack 5 and within a React project made with the create-react-app.
The text was updated successfully, but these errors were encountered: