codediodeio / angular-firestarter

🍱 :fire: Angular + Firebase Progressive Web App Starter
https://firestarter.fireship.io/
956 stars 437 forks source link

SSR doesn't work #93

Open levonka opened 4 years ago

levonka commented 4 years ago

First I ran the npm run build:ssr command, then npm run serve:ssr, but the error occurred in the console: package.json does not exist at fireship-starter/dist/package. json The same thing happens with the npm run dev:ssr command

HarrisonMayotte commented 3 years ago

Can you share your angular.json file?

PrivateDev315 commented 3 years ago

Hey, I got the same error, and I have followed the tutorial. ng serve works fine same does my npm run build:ssr but then running npm run serve:ssr breaks it with the very same error. I haven't changed any files other than the environment files and obviously the five-step tutorial related files.

I did manage to fix it by adding --bundleDependencies none to my build, however not sure if this is the good, since it gives me a different error

I have attached my angular.json angular.zip

The error given after --bundleDependencies none unknown