Typescript:错误:未知选项'--编译器';

Typescript:错误:未知选项'--编译器';,typescript,protractor,cucumber,Typescript,Protractor,Cucumber,使用量角器(和typescript)运行测试时, (即)npm test=>量角器typeScript/config/config.js我们遇到了错误 错误:未知选项“--编译器” 我们的tsconfig.json包含以下内容: { "compilerOptions": { "target": "es2020", "module": "commonjs",

使用量角器(和typescript)运行测试时, (即)npm test=>量角器typeScript/config/config.js我们遇到了错误

错误:未知选项“--编译器”

我们的tsconfig.json包含以下内容:

{
    "compilerOptions": {
        "target": "es2020",
        "module": "commonjs",        
        "moduleResolution": "node",
        "sourceMap": true,
        "declaration": false,
        "removeComments": false,
        "noImplicitAny": false,
        "outDir": "typeScript",
        "typeRoots": [ "./node_modules/@types" ],
        "types": ["node","@cucumber/cucumber"], 
        "esModuleInterop": true,
        "resolveJsonModule": true       
    },
    "exclude": [
        "node_modules",
        "typescript"
    ]
}

还尝试将typescript、量角器升级到最新版本,但运气不佳。

此处询问此问题,但仍未回答。我会首先联系发布这个问题的用户,看看他是否解决了很多问题!!!正在CucumberOpts下删除编译器工作。。。ts编译器的思想问题