Webpack v5 compatibility
See original GitHub issueGreetings
webpack v5 no longer includes polyfills by default and this breaks the react-papaparse v3 package.
Compiled with problems:X
ERROR in ./node_modules/react-papaparse/dist/react-papaparse.es.js 1:0-23
Module not found: Error: Can't resolve 'stream' in '/usr/src/app/node_modules/react-papaparse/dist'
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
This is no longer the case. Verify if you need this module and configure a polyfill for it.
If you want to include a polyfill, you need to:
- add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }'
- install 'stream-browserify'
If you don't want to include a polyfill, you can use an empty module like this:
resolve.fallback: { "stream": false }
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
To v5 from v4 - webpack
Some Plugins and Loaders might have a beta version that has to be used in order to be compatible with webpack 5. Make...
Read more >Webpacker 6.x - Compatibility with Webpack 5 · Issue #2757
I published webpack-assets-manifest v5 and it supports webpack 5. There were lots of updates in v4 and v5 and a couple breaking changes...
Read more >Top 5 Changes in webpack v5 - Ryan H. Lewis
It has been over two years between the release of webpack v4 (released in February 2018) and webpack v5 (released October 2020). That...
Read more >Migrating to webpack 5 to improve build time and reduce ...
Webpack migration from v4 to v5 is not just upgrading the webpack version, it's about migrating all the plugins and loaders to their...
Read more >Upgrading Webpack 4 → 5 | Square Corner Blog
But last week, we finally upgraded Webpack to v5.3.7 from v4.46.0 in ... For Webpack 5 compatibility, we replaced i18n-webpack-plugin with ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ax0n-pr1me @ericfournier2 @ray-vgw
It was fixed in latest version
react-papaparse v3.18.2
.Thank you so much!
Hi,
in the case of react-papaparse, does “remove usage of polyfilled modules” just mean “don’t use react-papaparse”?