New Jun 19, 2026

Why is TypeScript rejecting Quasar alias?

Libraries, Frameworks, etc. All from Newest questions tagged vue.js - Stack Overflow View Why is TypeScript rejecting Quasar alias? on stackoverflow.com

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.

Scroll to top