GitHub page with LeptOS CSR TailwindCSS example doesn't work #2239
-
I copied the example from here and followed the book tutorial in how to deploy into the GitHub pages. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
This is rendering your app correctly, but failing to match a route. This is because the path of the URL is |
Beta Was this translation helpful? Give feedback.
-
I have similar problem but just adding After some digging I realized that the suggestion above indeed only works by prepending the base to the routes too. So instead of matching the That seems to mean that we have to use that prefix string twice (nested routing seems to make it possible to use it not more than twice), but hey once the code knows that prefix it's not a big deal to use it more than once. But I'm using For example there must be a way for a wasm program to know where it was loaded from, like |
Beta Was this translation helpful? Give feedback.
This is rendering your app correctly, but failing to match a route. This is because the path of the URL is
/portfolio
, which is not a route in your app. You should be able to use thebase
prop on the<Router/>
component (and/or<Routes/>
, I can't remember exactly!) to tell the router that your base path is not/
.