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

Using TS generics (Diamond syntax <>) in SFC template fails in 3.2.34 #5959

Closed
AlexandreBonaventure opened this issue May 19, 2022 · 1 comment

Comments

@AlexandreBonaventure
Copy link
Contributor

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-83x6xy?file=src/App.vue

Steps to reproduce

Use generics in SFC template with diamond syntax <>

What is expected?

It was working just fine up until 3.2.34, this fork shows that it works fine with only a version change to 3.2.33 https://stackblitz.com/edit/vitejs-vite-dp1cf3?file=package.json

What is actually happening?

It throws an Unexpected token compilation error.

System Info

not relevant - repro is stackblitz

Any additional comments?

We've been using this syntax for typing slots in the template.

@zhmushan
Copy link
Contributor

I suspect this bug was introduced in ccf9256

@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants