SSR doesn't work
levonka opened this issue · 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
Can you share your angular.json file?
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