I
I
iluxa18102019-03-21 00:28:12
Angular
iluxa1810, 2019-03-21 00:28:12

TS:Cannot find module and swears at decorators. What nonsense?

I have already broken my whole head in misunderstandings ...
ucFfX.png
Another swearing at decorators:

Experimental support for decorators is a feature that is subject to change in a future release

The structure is like this:
VQczr.png
tsconfig.json:
{
  "compileOnSave": false,
  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2017",
      "dom"
    ]
  }
}

With all this, the project is going well.
Is it my investment? How to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2019-03-21
@Robur

If it builds normally and swears in vscode - you have vscode using some other typescript than the one used for building. Perhaps tsconfig is also not being pulled up, or the wrong one is being pulled up.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question