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.

Syntax Error in IE11

See original GitHub issue
  • Laravel Mix Version: 2.0.0 (npm list --depth=0)
  • Node Version: 8.2.1 (node -v):
  • NPM Version: 5.6.0 (npm -v):
  • OS: Mac OS
  • Browser: Internet Explorer 11 - Windows 7 - VirtualBox

Description:

Without vendor extraction, getting one error SCRIPT1002: Syntax error in app.js:

Object.keys(Methods).foreach(methodName) => {
    ...
}

With vendor extraction, getting 2 errors in vendor.js and manifest.js:

SCRIPT1002: Syntax error
File: vendor.js, Line: 62, Column: 44

###

Object.keys(Methods).foreach(methodName) => {
    ...
}

SCRIPT1002: Unable to get property 'call' of undefined or null reference
File: manifest.js, Line: 55, Column: 12

###

modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
reefkicommented, Jan 28, 2018

Sorry, the errors actually generated by https://github.com/nolimits4web/Swiper/issues/2237 I have this imported for vendor extraction purpose.

0reactions
pinodexcommented, Jun 28, 2019

I am having the same issue though I have no the nolimits4web/swiper package. Seems like the vendor.js and manifest.js doesn’t get transpiled to es5. EDIT: I found that https://github.com/sindresorhus/query-string is causing this issue. image image

I am having the exact issue. Do you find any solution to this? I found that downgrading query-string to version 5 seems to solve this issue for now.

I used the query-string-es5 package instead https://www.npmjs.com/package/query-string-es5

Read more comments on GitHub >

github_iconTop Results From Across the Web

System js syntax error, IE11 - javascript - Stack Overflow
Here is the error description that I see inside my web console. Error: (SystemJS) Syntax error SyntaxError: Syntax error at ZoneDelegate.
Read more >
Syntax error in IE 11 - jQuery Forum
My code works just fine in Chrome and Edge but in IE 11, I get syntax error at line var GDN. Any idea...
Read more >
SCRIPT1002: Syntax error - IE11 - Polyfill - Development Mode
I followed the steps for react-app-polyfill and that still did not work on IE11. npm i react-scripts@2.0.5 but that doesn't work. (Note: 2.0....
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 >
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 >

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