Invalid rule result: Instance of class Promise

kursat sonmez picture kursat sonmez · Jun 18, 2019 · Viewed 15.8k times · Source

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 )

Answer

kursat sonmez picture kursat sonmez · Jun 27, 2019

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.