failed to run Angular application getting error : Schema validation failed

前端 未结 4 2066
北荒
北荒 2021-02-06 04:51

I am using Angular 7 for my Application and I am getting error while running it on development server .

I did ng serve

but I got error

4条回答
  •  深忆病人
    2021-02-06 05:30

    This is due to npm audit fix installing a newer version of the @angular-devkit/build-angular package, specifically the 0.800.x versions, which has breaking changes from the 0.13.9 version. Thus, running the 0.800 version of this package breaks the angular-cli when used with Angular 7.

    To fix this issue install the older stable package version with:

    npm install --save-dev @angular-devkit/build-angular@0.13.9

提交回复
热议问题