[Vuejs]-Switched to a new laptop and suddenly my Vue project fails to compile with ES6 syntax errors

0👍

That problem really looks like it’s babel (the transpiler).

Depending on your project’s configuration, you might have a .babelrc file or babel config in the package.json.

Here you have a similar issue:

https://forum.vuejs.org/t/vue-loader-unexpected-token-error-for-using-spread-operator-on-my-vue-component/10241/6

You might have forgotten (or ignored) to include it into your repository.

Leave a comment