T
TanStack7mo ago
fascinating-indigo

basepath issue

I am trying to deploy to github pages which introduces a mandatory repo name base path in the url. So to account for this i am setting basepath in in createRouter options and also base: in my vite.config.js. the issue im getting is that when i do this, i get a spam of errors, suggesting the app is trying to call react createRoot twice, and the entire app gets duplicated again below (as in, not rerendered twice, but i can actually see two of everything). If i remove the base path properties, then this issue stops happening. any idea how to fix?
No description
2 Replies
useful-bronze
useful-bronze7mo ago
this is react-query-questions, you likely want #router-questions
fascinating-indigo
fascinating-indigoOP7mo ago
Oops, forgot to change channels lol

Did you find this page helpful?