question-mark
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.

Compatibility with webpack 5?

See original GitHub issue

Hello

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] Error: 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)
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:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilogorekcommented, Nov 27, 2020

Released as 1.14.0

1reaction
LouisTrezzinicommented, Nov 16, 2020

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 5

Thank you

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

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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found