Why does my @ alias not work with TypeScript?
I have these settings in my quasar.config.ts:
build: {
target: {
browser: 'baseline-widely-available',
node: 'node22',
},
typescript: {
strict: true,
vueShim: true,
// extendTsConfig (tsConfig) {}
},
alias: {
'@': '/src',
},
and this setting in tsconfig.json:
{
"extends": "./.quasar/tsconfig.json"
}
The app is running correctly but I have error:
Cannot find module '@/features/theme/lib' or its corresponding type declarations.
The imports with @ working, components successfully importing.