Skip to content

Deploy preview with Angular Universal does not work #2381

Closed
@AlanAcDz

Description

@AlanAcDz

Version info

Angular: 9.1.0

Firebase: 7.13.1

AngularFire: 6.0.0

Other (e.g. Ionic/Cordova, Node, browser, operating system):
Node 10.16.1, Windows 10

How to reproduce these conditions

Steps to set up and reproduce

  1. Create a new Angular app using ng new x
  2. Add Angular Universal using ng add @nguniversal/express-engine
  3. Add Angular Fire using ng add @angular/fire
  4. Install firebase with npm install firebase
  5. Run ng deploy --preview or ng deploy

Debug output

Expected behavior

Described in Step 2 of Deploy your application on Firebase Hosting & Functions

Actual behavior

When running ng deploy --preview, after compiling the bundles the terminal throws this error:

Command failed: npm ls || true
npm ERR! peer dep missing: node-sass@^4.0.0, required by sass-loader@8.0.2
npm ERR! peer dep missing: fibers@>= 3.1.0, required by sass-loader@8.0.2
npm ERR! peer dep missing: html-webpack-plugin@^2.21.0 || ~3 || >=4.0.0-alpha.2 <5, required by webpack-subresource-integrity@1.4.0
npm ERR! peer dep missing: canvas@^2.5.0, required by jsdom@16.2.2
"true" is not recognized as an internal or external command,
program or executable batch file.

Same result with ng deploy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions