How to transpile packages in monorepo without dedicated build step?
In our mono repo we hava a shared components package written in typescript. in our other apps (vite and nextjs based) we can just import it - however in tanstack start as soon as I import something in the
__root.tsx
I get an error:
With defaultSsr: false
it works except in __root.tsx
Is there a way to enable transpilation for local packages in ssr?4 Replies
correct-apricot•7mo ago
No clue if this applies at all, but have you tried playing around with optimzeDeps in your vite config?
correct-apricot•7mo ago
flat-fuchsiaOP•7mo ago
Yes tried adding it there and tried adding it to
ssr.noExternal
as well, didn't change the behaviour.
stormy-gold•7mo ago
can you provide a full example repository?