You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use electron-vite with react-router-dom, in development environment, it works perfectly, but in production, the app first loads the html file and I see the router error page first and the location is a file path ( path to index.html ), then when I click on any link the location (I displayed it on the page for test purposes) change and becomes /pathname, any idea how to deal with that ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to use electron-vite with react-router-dom, in development environment, it works perfectly, but in production, the app first loads the html file and I see the router error page first and the location is a file path ( path to index.html ), then when I click on any link the location (I displayed it on the page for test purposes) change and becomes /pathname, any idea how to deal with that ?
Beta Was this translation helpful? Give feedback.
All reactions