Navigation Menu

Skip to content
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: "Missing semicolon" when using vue v-on object syntax #6674

Closed
varmiral opened this issue Sep 15, 2022 · 2 comments
Closed

error: "Missing semicolon" when using vue v-on object syntax #6674

varmiral opened this issue Sep 15, 2022 · 2 comments

Comments

@varmiral
Copy link

Vue version

3.2.39

Link to minimal reproduction

https://sfc.vuejs.org/#__DEV__eNp9kcFOwzAMhl/FyqVMWpN7KZPgBE/AJZeuy0an1I6cdBymvjv2xsTGELfYzv/l95+jeU7JHqZgGtPmnodUIIcyJYgd7p68KdmblcdhTMQFXkOM9E4cN7BlGqGy7qelmOrRI4DH7YR9GQiB8A3TVB4WcNRJT5gpBhtp91ANOqkWIpk93mhe4sR/StYyuChadzYs9qQoYUyxK0EqgPaE1hPAoSaURY5w6jUXR0tQlpb6GMze6HVRt+4KZZbmvHo9dsnuM6EEdbLlvweST3M2qj2JQGtvPkpJuXEub3vNZZ8t8c7JyfKEZRiDDXms10yfObCAvVleMZw0D4FrDrgJHPg/5q+rd1zFSlqzrHL7V/rlt6mlVdd1rUt3KcxfrNi/0Q==

Steps to reproduce

Follow the link, slightly change js code to trigger demo recompilation. You will see SyntaxError: Missing semicolon.

What is expected?

Success vue file compilation.

What is actually happening?

SyntaxError: Missing semicolon. (1:27)
at Parser._raise (https://unpkg.com/@vue/compiler-sfc@3.2.39/dist/compiler-sfc.esm-browser.js:1347:17)
at Parser.raiseWithData (https://unpkg.com/@vue/compiler-sfc@3.2.39/dist/compiler-sfc.esm-browser.js:1340:17)
at Parser.raise (https://unpkg.com/@vue/compiler-sfc@3.2.39/dist/compiler-sfc.esm-browser.js:1301:17)
at Parser.semicolon (https://unpkg.com/@vue/compiler-sfc@3.2.39/dist/compiler-sfc.esm-browser.js:4356:10)
at Parser.parseExpressionStatement (https://unpkg.com/@vue/compiler-sfc@3.2.39/dist/compiler-sfc.esm-browser.js:14705:10)
at Parser.parseExpressionStatement (https://unpkg.com/@vue/compiler-sfc@3.2.39/dist/compiler-sfc.esm-browser.js:10434:26)
at Parser.parseStatementContent (https://unpkg.com/@vue/compiler-sfc@3.2.39/dist/compiler-sfc.esm-browser.js:14296:19)
at Parser.parseStatementContent (https://unpkg.com/@vue/compiler-sfc@3.2.39/dist/compiler-sfc.esm-browser.js:10334:18)
at Parser.parseStatement (https://unpkg.com/@vue/compiler-sfc@3.2.39/dist/compiler-sfc.esm-browser.js:14158:17)
at Parser.parseLabeledStatement (https://unpkg.com/@vue/compiler-sfc@3.2.39/dist/compiler-sfc.esm-browser.js:14697:22)

System Info

No response

Any additional comments?

The error doesn't appear if comment out import declaration line or delete one property from binden (v-on) object.

@vis97c
Copy link

vis97c commented Sep 15, 2022

Same issue happened to me on nuxt3.rc10 nuxt/framework#7374

image

image

@vis97c
Copy link

vis97c commented Sep 24, 2022

#6652 Seems to fix this

chrislone pushed a commit to chrislone/core that referenced this issue Feb 4, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants