Open OliverZott opened 2 years ago
Hi, thanks for your brilliant project! But I just met the same problem as OliverZott when deployed my blog.
In App.tsx :
import {
BrowserRouter as Router,
Routes,
Route,
} from "react-router-dom";
function App() {
return (
<Router basename={process.env.PUBLIC_URL + '/'}>
<Routes>
<Route path="/home" element={<Home />} />
<Route path="/" element={<Trips />} />
</Routes>
</Router>
);
}
and the packages.json :
"homepage": "https://lionelsy.github.io/maps",
...
"react-router-dom": "^6.2.2",
...
But I can only view the https://lionelsy.github.io/maps and the page (https://lionelsy.github.io/maps/home) shows 404 : (
I revised the code referring to many examples (most under react-router-dom v5), but it doesn't work.
Best regards!
Having the same issue for a while, found any solution yet? :))
Hi @Lionelsy and @catherineisonline, sorry about the long wait. If you are still getting GitHub's HTTP 404 error page, you may want to employ one of the two workarounds I listed in https://github.com/gitname/react-gh-pages/issues/104#issuecomment-1203373499.
Hi @OliverZott, sorry I am only replying now. I see the "Here are demons" UI at the link you provided, so I think things are working for you now. Please let me know whether you still have questions.
Hi,
first of all, thanks for the good work and that great project. I'm havin major troubles though, using react-router-dom v6 with gh-pages. As soon as i start using routes, the gh-page just shows a lank screen.
For example this is the App.tsx code
The html source-view at https://oliverzott.github.io/react-gh-page/ is just showing
I tried a lot of suggested fixes and workarounds, but nothing worked so far.
Best regards Olli