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.

Minification plugin causes error after webpack 5.10.1

See original GitHub issue

Things worked well in webpack v5.10.0, but started to fail after v5.10.1.

It still fails in the latest webpack v5.11.1

Console error

Uncaught TypeError: (intermediate value)(intermediate value)(...) is not a function
    at runtime~app.38fb8d44.js:1
    at runtime~app.38fb8d44.js:3

Corresponding snippet

image


Let me know if the context is not enough, I’m willing to provide more information.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
meteorlxycommented, Jan 1, 2021

Yes, it’s a runtime error.

My webpack config is a little complicated, so I didn’t have time to make a minimal repro.

I’ll try to make one later

0reactions
privatenumbercommented, Jan 13, 2021

@jamespantalones

Would you be able to provide minimal reproduction?

I’m interested in looking deeper into this but I can’t do anything with the screenshots.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error with sourcemaps · Issue #68 · webpack-contrib/babel ...
I reproduce this issue when I use source maps with this plugin. ... const MinifyPlugin = require("babel-minify-webpack-plugin"); ...
Read more >
How to minify webpack bundle - Stack Overflow
hello I am learning webpack and I am trying to build a React App from scratch. Unfortunately, I am getting this error.
Read more >
Resolving "Failed to minify the bundle" Errors - CircleCI Support
TerserWebpackPlugin. The following error message is usually related to running out of memory during a job: Failed to minify the bundle.
Read more >
CssMinimizerWebpackPlugin | webpack
This plugin uses cssnano to optimize and minify your CSS. ... Use source maps to map error message locations to modules (this slows...
Read more >
terser - npm
JavaScript parser, mangler/compressor and beautifier toolkit for ES6+. Latest version: 5.16.1, last published: 24 days ago.
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