Closed ekuzu closed 6 years ago
Hi Enric. Will paste the email response here. Please make sure you have .babelrc file inside the project. Many people use mac and when they copy stuff from the archive they miss the .babelrc file since its hidden on mac by default. If that's not the issue, please let me know.
Hi i have the same issue despite the fact that i do have the babelrc file at the root of my project.
The error is:
[eslint] Parsing error: unexpected token import
@gamcoh can you show the full error for this case ? If it's a linting error that can be fixed by adding ignore rules for dynamic imports.
routes.js
[eslint] Parsing error: Unexpected token import (20:20)
const User = () => import('src/pages/Dashboard/Pages/UserProfile.vue');
but i think this error is generated by my code editor (VS code) because i don't get the error when the code compile or in the navigator console.
A common problem for MAC users is that because of hidden files, .bablerc
file is not copied from the archive. If everything works, but you have a linting error, most likely it's due to the editor. If the problem persists, feel free to reopen the issue
ERROR Failed to compile with 1 errors 11:56:54
error in ./src/routes/routes.js
Syntax Error: 15 | 16 | // Pages