quasarframework / app-extension-typescript

Add TypeScript to your existing Quasar 1.0 JS project

Home Page:https://quasar.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tsconfig.json needs baseUrl

webnoob opened this issue · comments

It needs "baseUrl": "." so that module resolution will work correctly. I think it might also need some bits to make webpack aliases work but I'll update as I find out more.

I am not yet using app-extension-typescript.

I am using "@quasar/app": "1.0.0-beta.10" with TypeScript.

Here is my initial tsconfig.json, which appears to be functioning correctly. I need to tune lib a bit more, but what is below is what was needed to get everything working comfortably "out-of-the-box".

tsconfig.json

{
  "compilerOptions": {
    "target": "es5",
    "module": "ESNext", // ESNext required for dynamic import used in routes.ts
    "lib": [
      "dom",       // Browser DOM
      "webworker", // Browser WebWorkers
      "es2015"     // Required for Promise
    ],
    "strict": true,
    "moduleResolution": "node", // Must be explicitly set to "node" when module is set to "es2015" or "esNext",
    "baseUrl": ".",
    "paths": {
      "*": [
        "*"
      ]
    },
    "esModuleInterop": true,
    "experimentalDecorators": true, // For use with vue-class-component / vue-property-decorator / vuex-class
}