Visual Studio finds systemjs typescript definitions but cannot find them at compilation

I have a TypeScript project in Visual Studio, with modules installed through systemjs. I have the following code:

app.ts

import { Aurelia } from 'aurelia-framework';

For example, hanging Aurelia and pressing F12 (Go to Definition) opens the correct file aurelia-framework.d.tsinstalled by systemjs. However, when I click Build, I get the following output:

error TS2307: Build: Cannot find module 'aurelia-router'.

Here is my tsconfig for reference.

tsconfig.json

{
  "version": "1.8.0",
  "compilerOptions": {
    "rootDir": "src/",
    "outDir": "dist/",
    "target": "es5",
    "module": "system",
    "declaration": false,
    "noImplicitAny": false,
    "removeComments": true,
    "noLib": false,
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true
  }
}
+4
source share
1 answer

, - my typings.d.ts - aurelia -/src - /// .d.ts .

.

+1

Source: https://habr.com/ru/post/1629066/


All Articles