Angular CLI gives me “TypeError: callbacks[i] is not a function” when I “ng serve”

前端 未结 12 1335
旧时难觅i
旧时难觅i 2020-12-08 02:26

I literally just made a fresh installation of the Angular CLI in order to try it out and I don\'t have a clue on what\'s causing the following error on the command line:

12条回答
  •  醉梦人生
    2020-12-08 02:53

    Following github.com/angular/angular-cli/issues/9550 (thanks @oers for the link in the comments)

    I just downgraded Anuglar CLI to version 1.6.7.

    To do so, just type

    npm uninstall -g @angular/cli

    And once it finished install a previous version

    npm install -g @angular/cli@1.6.7

    NOTE: This will work but it is just a temporary solution, they probably -and hopefully- hot fix this.

    EDIT: Actually I tried the wrong project which wasn't using CLI, tried again and it doesn't work, if you follow the github thread, it looks like a big thing, as it doesn't work with CLI 1.5.x nor 1.6.x (didn't tried with the others). It looks like the only thing we can do ATM is either debug through or sit and wait.

    OOPS!

提交回复
热议问题