Skip to content

Blank Page When Hosting React Vite TS Project on AWS Amplify #18064

Closed Answered by fragtex-eth
fragtex-eth asked this question in Q&A
Discussion options

You must be logged in to vote

Fix: For those wondering: I had the same route in React Router pointing to different pages
The issue occurred because I had a dynamic route like /:param, which conflicted with an existing sitemap.xml in my public folder. Since the dynamic route was catching all URLs, it intercepted also requests to /sitemap.xml and somehow caused this error.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fragtex-eth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant