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
Use a TypeScript type assertion as or : inside a prop binding in <template>.
What is expected?
TypeScript type assertions are compiled away as with <script lang="ts">.
What is actually happening?
Inside a Vue 3 SFC when using <script lang="tsx"> TS type assertions are not stripped away in the <template>, which leads to an 'Unexpected identifier' SyntaxError in the browser, because type assertion syntax is not valid JS.