Vite config issue?
My TSS side project is working fine and I want to add in Clerk. I spun up the TSS Clerk example app and that works fine too. I've copied across the Clerk related stuff into my side project and I'm getting -
My app.config.ts seems pretty vanilla -
I'm using the latest versions of everything. Is it possible I've got a library version conflict in my dependencies?
3 Replies
adverse-sapphireOP•9mo ago
It seems to be because I have a
createServerFn
outside of the Root route
Oh wow, that's super funky. Having the following commented out code causes the error to happen. Deleting the commented code fixes the issue. Craaaaazy!!
In fact just having -
causes it to have conniptions. But if I do -
It's fine
I'm really glad I spent the last few hours figuring that out 😅
If I'm feeling masochistic tomorrow I'll create a minimal repo and raise an issuegenetic-orange•9mo ago
please do
there are still issues with dead code elimination.
repros will help us fix those
adverse-sapphireOP•9mo ago
GitHub
Code comments in
__root.tsx
can cause vite plugin issue · Issue #...Which project does this relate to? Start Describe the bug Having code comments in __root.tsx as per the below StackBlitz reproduction can cause this error - 503 Server Unavailable Error: We detecte...