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
TS8013: Non-null assertions can only be used in TypeScript files. #3121
Comments
Same problem here after VSCode updated to v1.78.0 |
I tried multiple different methods to try and fix it, but ultimately came up short. Tried to compute the slot name, tried to do a null check for {column} and conditionally render it, etc. Ultimately this just stared happening with thew new VSCode update, since I havn't changed my code since before the update and it worked fine then. |
well, i have the same problem.... any solution ? |
I have that issue since I upgraded vue from 3.2.45 to 3.3.1. No error message prior to that with VSCode 1.78.1 |
Same error with VSCode 1.78.1, Volar 1.6.4 , TypeScript Vue Plugin (Volar) 1.6.4 |
Same problem with Quasar which is based on Vue3:
Only VSCode shows this error, but code works perfectly. Version: 1.78.1 |
I don't think this is a Volar issue because our prod builds fail as well because of this error. |
Width version : vue-tsc 1.6.4
this code give the error :
<template
v-for="col in slotFilters"
:key="col"
#[
filter-cell-${col}
]="{ column }"error TS8013: Non-null assertions can only be used in TypeScript files.
#[
filter-cell-${col}
]="{ column }"Width version : vue-tsc 1.6.3
Works just fine
Any way to solve this
Thanks
Pedro Martins
The text was updated successfully, but these errors were encountered: