-
-
Notifications
You must be signed in to change notification settings - Fork 664
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
error Parsing error: Unexpected token import #204
Comments
Sorry for the issue. I missed |
No problem, glad you figured it out :) |
I seem to be having this issue when I use the updated |
@shmarts
|
Hmm, a week ago I was getting an error when parser wasn't within parserOptions, but I've removed a couple of eslint related packages recently and it's gone now. |
Actually, you do need to set it as a property of parserOptions, have a look at https://github.com/vuejs/eslint-plugin-vue#what-is-the-use-the-latest-vue-eslint-parser-error |
Adding |
- "parser": "babel-eslint",
"parserOptions": {
+ "parser": "babel-eslint",
"ecmaVersion": 2017,
"sourceType": "module"
} |
I don't use vue in a project, but I get the same issue: |
@hzsrc Can you please share your |
This is working, thanks! |
Tell us about your environment
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
What actually happened? Please include the actual, raw output from ESLint.
src/App.vue 16:25 error Parsing error: Unexpected token import
The text was updated successfully, but these errors were encountered: