Invalid rule result: Instance of class Promise

前端 未结 12 1832
野趣味
野趣味 2021-01-17 13:55

I work with Angular 7.1.4. I want to generate a new module with the following line;

ng g m order-process

But I encountered an error:

<         


        
12条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-17 14:40

    This answer is not related to the initial question, but since this is the first hit in google for the error message, I'll leave some information here for everybody seeing this error when upgrading Apollo (apollo-angular) from 1.x to 2.x with ng update apollo-angular.

    Check if you have installed @angular-devkit/schematics and if it is the same version as your @angular/cli package.
    If not install with @angular-devkit/schematics@. Then commit the changes, make sure you don't commit the changed Apollo version from the failed run and try again.

提交回复
热议问题