failed to run Angular application getting error : Schema validation failed

前端 未结 4 2067
北荒
北荒 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:23

    OK I did some testing and on my side (check out my comment in the question) it seems that the npm audit fix breaks the dependencies and causes ng serve to yield on that error. It seems to have to do with a dependency and I hope they'll fix it soon...

    0 讨论(0)
  • 2021-02-06 05:24

    I think its with the rxjs incompatibility. Try running this

    npm install rxjs-compat

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2021-02-06 05:39

    Even I ran into the same problem. As @Ardzii suggested the issue is with 'npm audit fix' command. I cloned a new repo and installed the node packages again without running the npm audit command and now it works fine.

    0 讨论(0)
提交回复
热议问题