You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0:0 Parsing error: Cannot set property index of Error which has only a gettereslint
What did you expect to happen?
A better message, with the problematic line.
Or simply find this issue by doing a google search with this error message. To understand that there is a syntax error in the code.
What actually happened?
[{
"resource": "src/components/HelloWorld.vue",
"owner": "eslint",
"severity": 8,
"message": "Parsing error: Cannot set property index of Error which has only a getter",
"source": "eslint",
"startLineNumber": 1,
"startColumn": 1,
"endLineNumber": 1,
"endColumn": 1
}]
Repository to reproduce this issue
❗ If you don't share it for a few days, we silently close this issue.
The text was updated successfully, but these errors were encountered:
This only happens with the default parser (espree). But since the code contains TypeScript syntax, a TypeScript-supporting parser has to be specified manually. See https://eslint.vuejs.org/user-guide/#how-to-use-a-custom-parser for instructions how to do this.
Checklist
Tell us about your environment
Please show your full configuration:
What did you do?
The code above is wrong. In the original code the type definition and the object instantiation are mixed together within the ref function call.
The error message is :
0:0 Parsing error: Cannot set property index of Error which has only a gettereslint
What did you expect to happen?
A better message, with the problematic line.
Or simply find this issue by doing a google search with this error message. To understand that there is a syntax error in the code.
What actually happened?
Repository to reproduce this issue
❗ If you don't share it for a few days, we silently close this issue.
The text was updated successfully, but these errors were encountered: