[Vuejs]-What do I get an error when I attempt to connect a vue component to my router.js file?

0👍

Import is a keyword in ES2016 which is a new JavaScript standard. To me it looks like you’re using ES5, which is the version currently available in most browsers. To use ES6 features you need to transpile your code to ES5 using a tool such as Babel. If you created your project with vue-cli according to the tutorials, Babel should be automatically configured on your project.

Leave a comment