angular-firestarter icon indicating copy to clipboard operation
angular-firestarter copied to clipboard

SSR doesn't work

Open levonka opened this issue 5 years ago • 2 comments

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

levonka avatar May 04 '20 14:05 levonka

Can you share your angular.json file?

HarrisonMayotte avatar May 29 '20 20:05 HarrisonMayotte

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

PrivateDev315 avatar Jun 02 '20 12:06 PrivateDev315