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
Unable to locate the error file line number of v-on.
no semicolon and no arrow function, like:
<my-dialog
@close="show=falseid=''"
/>
output:
error during build:
SyntaxError: Error parsing JavaScript expression: Unexpected token, expected "," (3:0)
at createCompilerError (D:\my-project\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:1329:17)
at emitError (D:\my-project\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:2822:5)
at createExp (D:\my-project\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:2815:7)
at Object.onattribend (D:\my-project\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:2336:29)
at Tokenizer.handleInAttrValue (D:\my-project\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:909:16)
at Tokenizer.stateInAttrValueDoubleQuotes (D:\my-project\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:919:10)
at Tokenizer.parse (D:\my-project\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:1063:16)
at Object.baseParse (D:\my-project\node_modules\@vue\compiler-core\dist\compiler-core.cjs.js:2861:13)
at Object.parse (D:\my-project\node_modules\@vue\compiler-dom\dist\compiler-dom.cjs.js:707:23)
at Object.parse$2 [as parse] (D:\my-project\node_modules\@vue\compiler-sfc\dist\compiler-sfc.cjs.js:1853:24)
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Related plugins
plugin-vue
plugin-vue-jsx
Describe the bug
Unable to locate the error file line number of v-on.
no semicolon and no arrow function, like:
output:
Reproduction
see Describe
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
see Describe
Validations
The text was updated successfully, but these errors were encountered: