角构建失败,“数据路径为'.sourceMap'应该是对象”。

goy*_*alM 7 build angular-cli angular

我正在使用angular CLI命令构建我的angular应用程序 ng test --source-map=false

一切正常,但是突然我开始遇到以下错误

Schema validation failed with the following errors:
Data path ".sourceMap" should be object.
Data path ".sourceMap" should be boolean.
Data path ".sourceMap" should match exactly one schema in oneOf.
Run Code Online (Sandbox Code Playgroud)

在某些检查中,问题似乎是由--source-map参数引起的,但不确定确切原因。

小智 0

你的命令正确吗?我认为应该是 ng test --sourcemaps=false