错误 TS6044:编译器选项 'types' 需要一个参数
error TS6044: Compiler option 'types' expects an argument
我在尝试在 tsconfig.json 中设置 "types": []
时遇到以下错误 error TS6044: Compiler option 'types' expects an argument.
。
我们正在使用 grunt-ts
这是官方 TS 文档推荐的,以消除以下错误:node_modules/@types/angular/index.d.ts(14,9): error TS2403
Here is the link to TS documentation
指定“类型”:[] 以禁用自动包含@types 包。
但是我看到错误 error TS6044: Compiler option 'types' expects an argument.
而不是禁用自动包含 @types
有人可以帮助我吗?
我建议使用 tsconfig.json 直通以及该参数和 grunt-ts。 TypeScript 2.x 时间框架中的一些新功能在命令行中运行得不是很好或根本无法运行。或者,您可以尝试使用 grunt-ts 的 additionalFlags 功能并将“”作为类型值传递。我不在电脑旁边,无法测试它,但它可以工作。
我终于解决了在类型中指定 jasmine 的问题
"types" : ["jasmine"]
我在尝试在 tsconfig.json 中设置 "types": []
时遇到以下错误 error TS6044: Compiler option 'types' expects an argument.
。
我们正在使用 grunt-ts
这是官方 TS 文档推荐的,以消除以下错误:node_modules/@types/angular/index.d.ts(14,9): error TS2403
Here is the link to TS documentation
指定“类型”:[] 以禁用自动包含@types 包。
但是我看到错误 error TS6044: Compiler option 'types' expects an argument.
有人可以帮助我吗?
我建议使用 tsconfig.json 直通以及该参数和 grunt-ts。 TypeScript 2.x 时间框架中的一些新功能在命令行中运行得不是很好或根本无法运行。或者,您可以尝试使用 grunt-ts 的 additionalFlags 功能并将“”作为类型值传递。我不在电脑旁边,无法测试它,但它可以工作。
我终于解决了在类型中指定 jasmine 的问题 "types" : ["jasmine"]