Incompatible with webpack's ProfilingPlugin
See original GitHub issueCurrent 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:
- Created 2 years ago
- Reactions:10
- Comments:8 (1 by maintainers)
Top 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 >
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

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
Nice, thanks for checking!