Error TS6044: the compiler option 'types' expects an argument

I am facing the following error error TS6044: Compiler option 'types' expects an argument. when trying to install "types": [] in tsconfig.json.

We use grunt-ts

This is recommended by the TS official documentation to get rid of the following errors: node_modules/@types/angular/index.d.ts(14,9): error TS2403

Here is a link to TS documentation

Specify "types": [] to disable the automatic inclusion of @types packages.

But instead of disabling the automatic inclusion of @types, I see the error error TS6044: Compiler option 'types' expects an argument.

Can someone help me?

+5
source share
2 answers

Finally, I solved the problem that defines jasmine in the types types: ["jasmine"]

0
source

I would recommend using tsconfig.json passthrough with this parameter and grunt-ts. Some of the new features in TypeScript 2.x timeframes do not work very well or from the command line at all. Alternatively, you can try using the optional grunt-ts flags function and pass "" as the value of the types. I am not near the computer to check this, but it can work.

+1
source

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


All Articles