You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like vinxi build is not bundling the tslib/modules folder when used with Tanstack Start.
This causes bun to not be able to start the server since it "can't find" tslib. Copying over a non-tree shaked tslib into .output/node_module fixes the issue.
Example error:
ERROR error: Cannot find package "tslib" from "/var/task/app/.output/server/index.mjs"
--
The text was updated successfully, but these errors were encountered:
I got this error too whilst trying to add tslib as a dependency to trpc (trpc/trpc#6271) (using Node, not Bun).
We have a lot of example projects in tRPC where we do build & e2e tests. TanStack Start is one of them and the only one failing.
Manually patching node_modules/tslib/package.json with the below makes it pass, that's not really a solution but might give a clue to someone who understands this better than I do
Looks like vinxi build is not bundling the tslib/modules folder when used with Tanstack Start.
This causes bun to not be able to start the server since it "can't find" tslib. Copying over a non-tree shaked tslib into .output/node_module fixes the issue.
Example error:
The text was updated successfully, but these errors were encountered: