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.

SCRIPT1002: Syntax error on IE 11

See original GitHub issue

Importing vue2-scrollspy generates an error on IE11. Using laravel-mix to compile.

Error points at eval("/* unused harmony export install */\n/* harmony import */ var

Anyone experienced this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
Anima-t3dcommented, Nov 20, 2018

I think the issue is caused by having package.json put module as src: https://github.com/ibufu/vue2-scrollspy/blob/master/package.json#L5-L6

  "main": "dist/index.js",
  "module": "src/index.js",

If I change the following it works:

import Scrollspy from "vue2-scrollspy";
Vue.use(Scrollspy);

TO:

import Scrollspy from "vue2-scrollspy/dist/index";
Vue.use(Scrollspy);
3reactions
rdpascuacommented, Aug 18, 2018

capture

@ibufu doesn’t seem to fix on my end. I’m using IE11

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "SCRIPT1002:syntax error" export in IE 11?
The export statement and => arrow functions are ECMAScript 6 syntax which is not supported by IE. You should transpile your code to...
Read more >
SCRIPT1002: Syntax error - IE11 - Polyfill - Development Mode
browse to website on Internet explorer 11 and it just displays a white screen and an error in the console. Expected Behavior. My...
Read more >
Syntax error 'SCRIPT1002' using internet explorer 11
i have tried changing versions of webpack , @wabpack/polyfill and babel-loader. but its not working. Same error i am facing in IE 11....
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 >
Create React App IE11 : SCRIPT1002: Syntax Error How to ...
Clear IE11's cache and restart your server react server using npm run start again.
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