Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in IE: SCRIPT1006: Expected ')' #15

Open
dfarrNTST opened this issue Jan 18, 2019 · 4 comments
Open

Error in IE: SCRIPT1006: Expected ')' #15

dfarrNTST opened this issue Jan 18, 2019 · 4 comments

Comments

@dfarrNTST
Copy link

dfarrNTST commented Jan 18, 2019

I hate to even note this, but we unfortunately have a requirement to use IE 10+ in our app and we're really fond of this package, but it doesn't seem to work in IE 10+. We get the following error in the Console: SCRIPT1006: Expected ')'. Is IE 10+ not supported? The CodePen example on the Code page fails as well.

@tehyo
Copy link

tehyo commented Jan 24, 2019

You need to add this plugin to your Babel config :
plugins: ["@babel/plugin-transform-parameters"]
Also, make sure your plugin is transpiled (with Nuxt.js, I use transpile in the build section of nuxt.config.js).

@dfarrNTST
Copy link
Author

I'm fairly new to Vue and created a new project with the latest vue CLI and the babel.config.js file appears as below. How do I add that plugin to it? Also, is the transpile piece required, I've never used Nuxt before nor do we use it for our apps. Will just adding that plugin to the config alone not just work?

module.exports = { presets: [ [ '@vue/app', { useBuiltIns: 'entry' } ] ] };

@tehyo
Copy link

tehyo commented Jan 29, 2019

The problem likely comes from a plugin which isn't transpiled for old browsers. Babel skips node_modules dependencies. Firstly you need to find which.

Secondly, I can't test with Vue.js but you probably need to add a loader to transpile your plugin, as explained here : https://medium.com/thetiltblog/how-to-transpile-es6-vue-plugins-with-webpack-c5d4286a7737

@arthurvasconcelos
Copy link
Owner

This was probably fixed in the last release. I've updated the build pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Issue Tracker
  
Needs triage
Main Board
  
In progress
Development

No branches or pull requests

3 participants