Closed waldo2810 closed 4 months ago
@waldo2810 There's no enough information about your setup, it can be Vite
or generouted
related.
Could you please provide a minimal reproduction with StackBlitz?
Seems like a Vite issue. This issue may be closed now.
@waldo2810 Hello, I seem to be having the similar issue but the 404 occurs when navigating to a page that is defined. Can you tell me what did you do to resolve that Vite issue?
@waldo2810 Hello, I seem to be having the similar issue but the 404 occurs when navigating to a page that is defined. Can you tell me what did you do to resolve that Vite issue?
Hi, due to purely skill issues, I ended up using react-router directly.
One thing I can assure you, I wasn't able to reproduce in another environment so I'm positive it was an issue in my code.
I hope that helps and happy coding!
Describe the Bug
Application throws the following error upon loading:
This not only happens when
npm run build
and thennpm run preview
in my computer. But also doing the same in aDockerfile
.Generouted Version
1.18.2
Your Example Website or App or Reproduction
https://www.waasabi.co/
Steps to Reproduce the Bug or Issue
npm run dev
. Everything ok.npm run build
to build. Everything ok.npm run preview
to check prod version. Error.Expected Behavior
To load application just like in development mode.
Screenshots or Videos
With![image](https://github.com/oedotme/generouted/assets/65872529/d17e4c5f-57a7-4620-aefa-888c3f00f5be)
npm run dev
:With![locally](https://github.com/oedotme/generouted/assets/65872529/b37f47cb-ac36-44f2-81c8-2a9764cfc447)
npm run build && npm run preview
:Platform
Additional context
I know I am very likely missing something or doing something wrong, but I cannot find the answer anywhere, thanks for the support.