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

[BREAKING CODE] NodeJS polyfills are not included in the latest version of create-react-app #476

Closed
SmithVyne opened this issue Apr 19, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@SmithVyne
Copy link
Contributor

The latest version of create-react-app lacks NodeJS polyfills.
This is a problem because Web3 js depends on some of those polyfiills.

News users of this kit get errors like:

WARNING in ./node_modules/xhr2-cookies/dist/xml-http-request.js
Module Warning (from ./node_modules/source-map-loader/dist/cjs.js):
Failed to parse source map from '/node_modules/xhr2-cookies/xml-http-request.ts' file: Error: ENOENT: no such file or directory, open '/node_modules/xhr2-cookies/xml-http-request.ts'
@ ./node_modules/xhr2-cookies/dist/index.js 11:9-38
@ ./node_modules/web3-providers-http/lib/index.js 27:11-49
@ ./node_modules/web3-core-requestmanager/lib/index.js 56:16-46
@ ./node_modules/web3-core/lib/index.js 23:23-58
@ ./node_modules/web3/lib/index.js 32:11-31
@ ./src/pages/Profile/index.js 11:0-24 19:14-18
@ ./src/routes/Router.js 10:0-39 32:17-24 46:17-24
@ ./src/App.js 6:0-37 12:35-41
@ ./src/index.js 8:0-24 17:37-40

SEE FIX HERE 👍

ISSUE RAISED HERE

@SmithVyne SmithVyne added the bug Something isn't working label Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant