Closed orckid-lab closed 5 years ago
Getting the same error on IE11 using Element UI & Vue CLI 3.
Removing the following lines fixes the application, indicating that it is originating from this plugin.
import Scrollspy from "vue2-scrollspy";
Vue.use(Scrollspy);
I found the error by looking at the bundled code and seeing that IE11 doesn't understand the =>
in the bundle. I could be wrong about the source of the issue, but it definitely is this plugin's import.
Any update on this issue?
fixed
@ibufu doesn't seem to fix on my end. I'm using IE11
Here's the error in IE11:
Alludes to what @ShaneParker mentioned above:
Any thoughts?
Issue still persists
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);
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?