Compatibility with webpack 5?
See original GitHub issueHello
We are trying to use this plugin with webpack 5 but we run into this error:
$ webpack --config webpack.config.web.js --mode production
[webpack-cli] [31mError: Unsupported chunk loading type /var/lib/jenkins/workspace/Web Client Build/node_modules/@sentry/webpack-plugin/src/sentry-webpack.module.js.
Plugins which provide custom chunk loading types must call EnableChunkLoadingPlugin.setEnabled(compiler, type) to disable this error.
at EnableChunkLoadingPlugin.apply (/var/lib/jenkins/workspace/Web Client Build/node_modules/webpack/lib/javascript/EnableChunkLoadingPlugin.js:104:12)
at WebpackOptionsApply.process (/var/lib/jenkins/workspace/Web Client Build/node_modules/webpack/lib/WebpackOptionsApply.js:139:40)
at createCompiler (/var/lib/jenkins/workspace/Web Client Build/node_modules/webpack/lib/webpack.js:78:28)
at create (/var/lib/jenkins/workspace/Web Client Build/node_modules/webpack/lib/webpack.js:115:15)
at webpack (/var/lib/jenkins/workspace/Web Client Build/node_modules/webpack/lib/webpack.js:139:31)
at f (/var/lib/jenkins/workspace/Web Client Build/node_modules/webpack/lib/index.js:35:15)
at WebpackCLI.createCompiler (/var/lib/jenkins/workspace/Web Client Build/node_modules/webpack-cli/lib/webpack-cli.js:219:24)
at WebpackCLI.run (/var/lib/jenkins/workspace/Web Client Build/node_modules/webpack-cli/lib/webpack-cli.js:248:31)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:834:11)[39m
error Command failed with exit code 2.
Is webpack 5 supported? Do you have any plan to support it or do you know a workaround?
Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5 (2 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 >Compatibility with Webpack 5 #2802 - GitHub
[WIP] This PR introduces a couple of major changes 1. Automatic rules See the approach in: package/rules/index.js The idea is that a rule...
Read more >Upgrading Webpack 4 → 5 | Square Corner Blog
For Webpack 5 compatibility, we replaced i18n-webpack-plugin with webpack-localize-assets-plugin. It supports multiple locales by default, ...
Read more >What's New in Webpack 5 - Frontend Digest
In this article, we go over all the new features in version 5 and give you tips and trips on upgrading.
Read more >Migrating to Webpack 5 at smallcase - Medium
we were already on node >= 10 , which is compatible with webpack 5; upgraded webpack 4, webpack cli and the plugins /...
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 Free
Top 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
Released as
1.14.0
Hello @dcramer,
Can we expect an update on this issue? Or should we completely move away from
sentry-webpack-plugin
? This is blocking our migration to webpack 5Thank you