Does anybody know how to fix this tsconfig error?
Flag 'importsNotUsedAsValues' is deprecated and will stop functioning in TypeScript 5.5. Specify 'ignoreDeprecations: "5.0"' to silence this error. Use 'verbatimModuleSyntax' instead.
I use vscode and created new Vue project instance using Vite
Not sure if I should silence this error or there is a specific solution on how to edit tsconfig?
Had the same issue, got it fixed using this workaround from the GitHub issue:
If you're using @vue/tsconfig/tsconfig.web.json
or similar, you can reset those properties that are erroring when you enable verbatimModuleSyntax
{
"extends": "@vue/tsconfig/tsconfig.web.json",
"compilerOptions": {
// workaround for https://github.com/vuejs/tsconfig/issues/6
"preserveValueImports": false,
"importsNotUsedAsValues": "remove",
"verbatimModuleSyntax": true,
// end workaround
},
}
I saw you used @vue/tsconfig/tsconfig.web.json
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With