Unable to locate the error file line number of v-on.
no semicolon and no arrow function, like:
<my-dialog
@close="
show = false
id = ''
"
/>
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)
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] 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
[X] 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