Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Error on adding Universal: "Invalid rule result instance of class promise" #1387

@g-hamilton

Description

@g-hamilton

Bug Report

What is the expected behavior?

On this command:
ng add @nguniversal/express-engine --clientProject black-dashboard-pro-angular
I expect Universal installation to complete with no errors.

What is the current behavior?

The installation quits part way with the error message:
Invalid rule result instance of class promise

I'm stuck debugging this and any help would be much appreciated!

What modules are related to this issue?

- [ ] aspnetcore-engine
- [ ] builders
- [ ] common
- [ ] express-engine
- [ ] hapi-engine
- [ ] module-map-ngfactory-loader

Minimal reproduction with instructions:

What is the use-case or motivation for changing an existing behavior?

Environment:

@nguniversal versions

  • aspnetcore-engine:
  • common:
  • express-engine:
  • hapi-engine:
  • module-map-ngfactory-loader:
<!--
Output from: `ng --version`.
If nothing, output from: `node --version` and `npm --version`.
  Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
-->

Is there anything else we should know?

My package.json:

{
  "name": "black-dashboard-pro-angular",
  "version": "1.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",
    "install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "8.2.9",
    "@angular/common": "8.2.9",
    "@angular/compiler": "8.2.9",
    "@angular/core": "8.2.9",
    "@angular/fire": "^5.2.1",
    "@angular/forms": "8.2.9",
    "@angular/platform-browser": "8.2.9",
    "@angular/platform-browser-dynamic": "8.2.9",
    "@angular/router": "8.2.9",
    "@fullcalendar/core": "4.3.1",
    "@fullcalendar/daygrid": "4.3.0",
    "@fullcalendar/interaction": "4.3.0",
    "@swimlane/ngx-datatable": "16.0.2",
    "@types/algoliasearch": "^3.34.5",
    "@types/mixpanel-browser": "^2.23.2",
    "algoliasearch": "^3.35.1",
    "angular2-multiselect-dropdown": "4.6.3",
    "bs-stepper": "1.7.0",
    "chart.js": "2.8.0",
    "core-js": "3.2.1",
    "country-flag-emoji": "^1.0.3",
    "d3-scale": "3.1.0",
    "devextreme": "19.1.6",
    "devextreme-angular": "19.1.6",
    "firebase": "^7.2.3",
    "fullcalendar": "3.10.1",
    "jw-bootstrap-switch-ng2": "2.0.5",
    "mixpanel-browser": "^2.30.1",
    "ngx-bootstrap": "5.1.2",
    "ngx-chips": "2.0.2",
    "ngx-toastr": "11.1.0",
    "nouislider": "14.0.2",
    "perfect-scrollbar": "1.4.0",
    "rxjs": "6.5.3",
    "stream": "0.0.2",
    "sweetalert2": "8.18.1",
    "tslib": "1.10.0",
    "zone.js": "0.10.2"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "0.803.8",
    "@angular/cli": "8.3.8",
    "@angular/compiler-cli": "8.2.9",
    "@angular/language-service": "8.2.9",
    "@schematics/angular": "8.3.8",
    "@types/jasmine": "3.4.2",
    "@types/jasminewd2": "2.0.8",
    "@types/node": "12.7.11",
    "codelyzer": "5.1.2",
    "jasmine-core": "3.5.0",
    "jasmine-spec-reporter": "4.2.1",
    "karma": "4.3.0",
    "karma-chrome-launcher": "3.1.0",
    "karma-coverage-istanbul-reporter": "2.1.0",
    "karma-jasmine": "2.0.1",
    "karma-jasmine-html-reporter": "1.4.2",
    "protractor": "5.4.2",
    "ts-node": "8.4.1",
    "tslint": "5.20.0",
    "typescript": "3.5.3"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    need: more infoReporter must clarify the issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions