2👍
You are using es6 syntax ( import ) and your environment only support es5 syntax. So either configure “babel” in your webpack or use require instead of import
var App = require( "../vues/App" );
UPDATE: this error could also appear in case you do not have a module bundler installed, such as Webpack which takes modules with dependencies and generates static assets representing those modules.
install it from here : https://webpack.js.org/guides/installation/
Source:stackexchange.com