Callback was already called angular cli

前端 未结 4 491
予麋鹿
予麋鹿 2021-02-04 11:30

I updated my angular-cli then i got error in ng serve

 Callback was already called.
at throwError (node_modules\\neo-async\\async.js:14:11)
at node_modules\\neo-         


        
4条回答
  •  北荒
    北荒 (楼主)
    2021-02-04 12:19

    If removing webpack from your package.json doesn't work for you:

    In my case I just needed to update the following dependencies : "@angular-devkit/core", "@angular-devkit/build-angular", and "@angular-devkit/schematics" to the following version : "0.8.1".

    This way "@angular-devkit/build-angular" had the same version than the webpack specified in my package.json (4.18.0).

    This means that if your run npm ls webpack and have multiple results, you don't have to remove webpack from your project, you just need both versions to be the same.

提交回复
热议问题