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.

IE11 onOpen: () syntax error

See original GitHub issue

Using v7.4.0 and the polyfill for ES6 promises for IE11. Attempting to use the showLoading() spinner example as per the docs, but the following line results in a syntax error and breaks the rest of my JS.

onOpen: () => {

I realise ‘nobody uses IE’ anymore. Unfortunately some of our clients have no choice due to legacy software.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gvernicommented, May 11, 2019

Hi @venkymadurai the lack of fat arrow functions support in IE doesn’t have anything to do SweetAlert2. In our examples we just use the latest version of JS specification, and the browser compatibility should be part of background skills for a JS developer.

1reaction
samturrellcommented, Jan 17, 2018

Try onOpen: function() { instead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

System js syntax error, IE11 - javascript - Stack Overflow
your are getting a SyntaxError, so no polyfill will help. Polyfills can add missing functions/objects to older browsers, like: Map, Set, Array.
Read more >
SCRIPT1002: Syntax error in IE11 - Soft8Soft
Hi,. The logic doesn't work when loading the 3D in IE11 and it gives a Script1002 error. Please see attached screenshots.
Read more >
execution of script as a function is not supported
The following is the basic syntax to create MySQL User-defined function. ... Learn how to fix the "replaceAll() is not a function" JavaScript...
Read more >
Any good guides on getting my app to run well in IE11? - Reddit
You open your app in IE11. Open the console. Check exactly where it broke. It (most likely) says „Syntax error“ or something is...
Read more >
how to download file in internet explorer using selenium
Uploading files in WebDriver is done by simply using the sendKeys() method on the ... how to click on open/save/cancel button on ie...
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