TS5101

error TS5101: Option ‘importsNotUsedAsValues’ is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption ‘“ignoreDeprecations”: “5.0”‘ to silence this error.
Use ‘verbatimModuleSyntax’ instead.

tsconfig.json
1
2
3
4
5
{
"compilerOptions": {
"importsNotUsedAsValues": "error"
}
}

Fixed Code ✔️

The compiler option importsNotUsedAsValues is not recommended when using TypeScript 5 and above, so you have to remove it from your tsconfig.json file:

tsconfig.json
1
2
3
4
{
"compilerOptions": {
}
}