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

SFC parse stuck on incomplete style variable injection expression #6022

Closed
johnsoncodehk opened this issue May 28, 2022 · 0 comments
Closed

Comments

@johnsoncodehk
Copy link
Member

Vue version

3.2.36

Link to minimal reproduction

https://sfc.vuejs.org/#eyJBcHAudnVlIjoiPHN0eWxlIHNjb3BlZD5cbmxhYmVsIHtcbiAgZm9udC13ZWlnaHQ6IHYtYmluZChcImNvdW50LnRvU3RyaW5nKFwiKTtcbiAgZm9udC13ZWlnaHQ6IHYtYmluZCh4eHgpO1xufVxuPC9zdHlsZT5cbiIsImltcG9ydC1tYXAuanNvbiI6IntcbiAgXCJpbXBvcnRzXCI6IHtcbiAgICBcInZ1ZVwiOiBcImh0dHBzOi8vdW5wa2cuY29tL0B2dWUvcnVudGltZS1kb21AMy4yLjM2L2Rpc3QvcnVudGltZS1kb20uZXNtLWJyb3dzZXIuanNcIixcbiAgICBcInZ1ZS9zZXJ2ZXItcmVuZGVyZXJcIjogXCJodHRwczovL3VucGtnLmNvbS9AdnVlL3NlcnZlci1yZW5kZXJlckAzLjIuMzYvZGlzdC9zZXJ2ZXItcmVuZGVyZXIuZXNtLWJyb3dzZXIuanNcIlxuICB9XG59In0=

Steps to reproduce

Open the minimal reproduction link, or paste below code to SFC playground.

<style scoped>
label {
  font-weight: v-bind("count.toString(");
  font-weight: v-bind(xxx);
}
</style>

What is expected?

Playground will not stuck, or report compile failed error.

What is actually happening?

SFC playground got stuck.

System Info

No response

Any additional comments?

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant