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.

Incompatible with webpack's ProfilingPlugin

See original GitHub issue

Current behaviour 💣

The webpack build crashes when used with the ProfilingPlugin

webpack plugin config:

plugins: [
  new HtmlWebpackPlugin(),
  new webpack.debug.ProfilingPlugin()
]

Ref: https://github.com/webpack/webpack/issues/12102#issuecomment-847104887

Expected behaviour ☀️

Don’t crash

Reproduction Example 👾

Here is a link to a code sandbox https://codesandbox.io/s/html-webpack-plugin-with-profiler-0xibi?file=/webpack.config.js

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:10
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
zqcccccommented, Nov 3, 2021

I solved this problem by putting ProfilingPlugin in the first position of the plugins array. version: html-webpack-plugin:5.50 webpack: 5.61.0

0reactions
nikolaikcommented, Mar 16, 2022

I confirm that this bug is fixed with Webpack 5.70.0.

Nice, thanks for checking!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Incompatible with webpack's ProfilingPlugin -
Coming soon: A brand new website interface for an even better experience!
Read more >
ProfilingPlugin - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >
Optimising Webpack Build Performance - Kogan.com Dev Blog
We first attempted to profile the build using the ProfilingPlugin that comes built-in to webpack. This is as simple as adding a plugin...
Read more >
How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
Update Webpack core packages to v5 (major) (!104336) · Merge ...
Error fetching labels. An error occurred while fetching the assigned milestone of the selected merge_request.
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