Skip to content

Conversation

@red1code
Copy link
Owner

I implemented SSR but i'm getting a blank page with "Internal Server Error" after testing the server with "npm run serve:ssr" command.
I was trying to solve this prblm for days but i couldn't. maybe because of lazy loaded routes, I dont know.
anyway I pushed to show the progress

@red1code red1code self-assigned this Jun 23, 2022
@red1code red1code requested a review from IOAyman June 23, 2022 10:09
@red1code
Copy link
Owner Author

  • I keep getting this error: "Failed to load resource: the server responded with a status of 500 (Internal Server Error)".

  • I googled, read docs, stackoverflow, and I tested a lot of things, and I know that the problem isn't coming from lazy loading routes, or from outdated dependencies.

  • maybe it's comming from PWA conflicting with SSR.

  • I think in order to solve this problem you need to be familiar with the back-end.

  • plz if you've got some time test it and tell me what do you think?

run npm run build:ssr to build both the application and the server script.
run npm run serve:ssr to start the server locally.

thank you.

@red1code
Copy link
Owner Author

this 2 lines in tsconfig.server.json were the problem:

Screenshot_2022-06-26_13-00-02

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

Successfully merging this pull request may close these issues.

2 participants