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.

"production" mode is causing an exception in IE11

See original GitHub issue

Bug report

What is the current behavior? I am bundling my TypeScript application with Webpack 4, and compiling with Babel. When using mode: "production" in "webpack": "^4.42.1", I get the error Unhandled promise rejection Typeerror: Object doesn’t support this action in IE11. The error doesn’t occur in any other browsers, and it doesn’t occur when using “developement” or “none” mode. Because the other modes are working, I assume that the error is due to a “production” mode configuration, and not (directly) related to my babel config. My guess is that some “production” config is not playing nice with Babel.

I have been trying to reverse-engineer the issue by using the same production config found here with mode: "none" to try and produce the same error. Once the issue can be re-produced without mode: "production", it should be straightforward to deduce the culprit option. So far I have not had any success. The snippet provided does not contain the TerserPlugin config, and for all I know might not actually be a 1:1 match of “production” mode.

If the current behavior is a bug, please provide the steps to reproduce. Not sure this is possible because I cannot reproduce outside my codebase, which is private.

What is the expected behavior? If mode: "development" bundle output is IE11 compatible, I would expect mode: "production" to be as well.

Other relevant information: webpack version: 4.42.1 Node.js version: v13.8.0 Operating System: macOS Catalina 10.15.4 Additional tools: IE11

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
korinercommented, Apr 18, 2020

@NicHaley I actually discovered that just including the custom-event-polyfill solved this in my case!

1reaction
NicHaleycommented, Apr 7, 2020

I can try and set one up

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack "production" mode is causing an exception in IE11
When using mode: "production" in "webpack": "^4.42.1", I get the error Unhandled promise rejection Typeerror: Object doesn't support this action ...
Read more >
Fix web compatibility issues using document modes and the ...
Test your sites for document mode compatibility · Go to a site having compatibility problems, press F12 to open the F12 Developer Tools,...
Read more >
How to trust a self-signed SSL certificate in IE11 and Edge
How to trust your self-signed certificate in Edge and IE11 · Click “Continue to this website”. · Click on “Certificate error” in the...
Read more >
Handling common JavaScript problems - MDN Web Docs
Unfortunately this does not work correctly with IE11, ... Declaring strict mode at the top of your JavaScript code causes it to be...
Read more >
Common Issues with IE 11 Browser - CRM - Support Wiki
The Enterprise Mode in IE 11 is a new compatibility mode to run application which is designed for IE8. If an issue is...
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