Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webpack v5 compatibility

See original GitHub issue


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/ 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

Bunlongcommented, Jan 4, 2022

@ax0n-pr1me @ericfournier2 @ray-vgw

It was fixed in latest version react-papaparse v3.18.2.

Thank you so much!

ericfournier2commented, Jan 2, 2022


in the case of react-papaparse, does “remove usage of polyfilled modules” just mean “don’t use react-papaparse”?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found