question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error Adding Universal: "Invalid rule result instance of class promise"

See original GitHub issue

🐞 Bug report

What modules are related to this issue?

  • aspnetcore-engine
  • builders
  • common
  • express-engine
  • hapi-engine
  • module-map-ngfactory-loader

Description

  • Trying to remove node_modules, package-lock, and update latest version.

🔬 Minimal Reproduction

🔥 Exception or Error


Invalid rule result: Instance of class Promise.

🌍 Your Environment



Angular CLI: 9.1.5
Node: 12.16.1
OS: darwin x64

Angular: 9.1.6
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.901.5
@angular-devkit/build-angular     0.901.5
@angular-devkit/build-optimizer   0.901.5
@angular-devkit/build-webpack     0.901.5
@angular-devkit/core              7.3.10
@angular-devkit/schematics        7.3.10
@angular/cdk                      9.2.3
@angular/cli                      9.1.5
@angular/material                 9.2.3
@ngtools/webpack                  9.1.5
@nguniversal/common               9.1.0
@nguniversal/express-engine       9.1.0
@schematics/angular               9.1.5
@schematics/update                0.901.5
rxjs                              6.5.5
typescript                        3.8.3
webpack                           4.42.0


Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
CaerusKarucommented, May 11, 2020

Probably has something to do with the fact that you’re using outdated @angular-devkit dependencies. Can you upgrade and try again?

0reactions
angular-automatic-lock-bot[bot]commented, Jun 11, 2020

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error on adding Universal: "Invalid rule result instance of class ...
What is the current behavior? The installation quits part way with the error message: Invalid rule result instance of class promise. I'm stuck ......
Read more >
Invalid rule result: Instance of class Promise - Stack Overflow
I'd solved my problem. My angular/cli version is 7.0.7 but I was find the @schematics/angular@8.0.3 in package-lock.json.
Read more >
Error on adding Universal: "Invalid rule result instance of class ...
What is the expected behavior? On this command: ng add @nguniversal/express-engine --clientProject black-dashboard-pro-angular. I expect Universal installation ...
Read more >
[Solved]-Invalid rule result: Instance of class Promise-angular.js
I'd solved my problem. My angular/cli version is 7.0.7 but I was find the @schematics/angular@8.0.3 in package-lock.json. So, I run the "npm install ......
Read more >
Invalid Rule Result: Instance Of Class Promise - ADocLib
While i am creating a new component in angular cli i get the above error as Invalid rule result: Instance of class Promise....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found