-
Notifications
You must be signed in to change notification settings - Fork 262
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
Syntax error (class Settings { constructor() ...) #35
Comments
You don't add the package there directly, but define a plugin file for it https://nuxtjs.org/api/configuration-plugins and should work. Also make sure to include the dist file from the package. |
In nuxt.config.js in the plugins array I try to add a plugin pstephan1187/vue-datatable (it uses ES6 syntax). Like this:
In This module doesn't use dist file when I import it from 'vuejs-datatable'. |
You have to extend the build rules and tell it to also include that library. Check the Nuxt docs. |
You are right! Thank you a lot! I resolved the problem nuxt.config.js
and this |
In nuxt.config.js in the plugins array I try to add a plugin pstephan1187/vue-datatable (it uses ES6 syntax)
After this I get error in IE10, IE11 - Syntax error (class Settings { constructor() ...)
How can I transform ES6 to ES5 in plugins block?
The text was updated successfully, but these errors were encountered: