Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSR doesn't work #93

Open
levonka opened this issue May 4, 2020 · 2 comments
Open

SSR doesn't work #93

levonka opened this issue May 4, 2020 · 2 comments

Comments

@levonka
Copy link

levonka commented May 4, 2020

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
Copy link

Can you share your angular.json file?

@PrivateDev315
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants