Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid rule result: Instance of class Promise

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:

Invalid rule result: Instance of class Promise.

How to fix this? Node: 8.11.3


package.json ( https://prnt.sc/o3cg54 )

like image 252
kursat sonmez Avatar asked Dec 10 '25 10:12

kursat sonmez


2 Answers

I'd solved my problem. My angular/cli version is 7.0.7 but I was find the @schematics/[email protected] in package-lock.json. So, I run the "npm install @schematics/[email protected] --save-dev" command and solved my problem. Thank you for interested.

like image 149
kursat sonmez Avatar answered Dec 12 '25 00:12

kursat sonmez


Run npm install @schematics/[email protected] --save-dev replace version with the same as your @angular/cli (in this scenario, 7.0.7)

like image 43
Pedro Santiago Avatar answered Dec 11 '25 23:12

Pedro Santiago



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!