Deploy Angular 5 + Nodejs Express app to Heroku

前端 未结 8 1425
清酒与你
清酒与你 2021-02-04 02:35

I have an Angular 5 App.

This is what I have in my package.json

{
  "name": "web",
  "version": "0.0.0&         


        
8条回答
  •  名媛妹妹
    2021-02-04 03:12

    Try adding @angular-devkit/build-optimizer as a package in the package.json file.

    "dependencies": {
        "@angular-devkit/build-optimizer": "^0.4.0",
        ...
    }
    

    This allows the post-install flag --aot to run. For some reason this package isn't built in anymore.

提交回复
热议问题