ok, Iāll experiment with this. Thanks marcel!
by user 216692838757433347
ok, Iāll experiment with this. Thanks marcel!
by user 216692838757433347
it worked! :MarioHype:
by user 216692838757433347
Changed the channel name: Problem with deploying to GitHub Pages / react router configuration
Update: Only the root page worked after all, but I resolved this by using a HashRouter instead of a BrowserRouter. For this I had to change the routes back to how they were originally, and the URLs have to have hashtags now like this: https://ts-programming.github.io/needle-portfolio-react/#/pentago
by user 216692838757433347
this is my App.tsx now```ts
import React from āreactā;
//import { BrowserRouter as Router, Route, Routes } from āreact-router-domā;
import { HashRouter as Router, Routes, Route } from āreact-router-domā;
import Home from ā./Home/homeā;
import Pentago from ā./GamePages/pentagoā;
import MakingTheSite from ā./GamePages/makingTheSiteā;
import {
ChakraProvider,
extendTheme,
} from ā@chakra-ui/reactā;
function App() {
const theme = extendTheme({
config: {
initialColorMode: ādarkā,
useSystemColorMode: false,
},
styles: {
global: {
body: {
bg: ā#181414ā, // Set the background color for dark mode
color: āwhiteā, // Set the text color for dark mode
},
},
},
});
return (
<Route path=ā/ā element={} />
<Route path=ā/pentagoā element={} />
<Route path=ā/making-the-siteā element={} />
);
}
export default App;
*by user 216692838757433347*
Everything is working as intended now except for one bug. When hitting back on the browser to to return to the home page, the NeedleEngine component doesnāt work. It will show the loading screen like normal, but after it āloadsā its just blank instead of properly showing the scene like when the homepage is accessed directly by URL. Not sure if this should issue should be discussed in a new thread or not
by user 216692838757433347
Thatās a bug which we just fixed in the latest release i think