S
SolidJS2mo ago
sh03

Details on how client code and server code is split

Is there detailed documentation on how server code and client code is split into two different bundles and how module side effects are handled? I'm having some issues with a "use server" module apparently loading server libraries into the client and I'm not sure I understand why.
6 Replies
mdynnl
mdynnl2mo ago
there's no documentation afaict but feel free to provide a reproduction, minimal or otherwise https://discord.com/channels/722131463138705510/910635844119982080/1310306053526650984
sh03
sh03OP2mo ago
I already did here: https://github.com/solidjs/solid-start/issues/1681 but I was just trying to speed up the process
GitHub
[Bug?]: useAction causes silent crash on the client · Issue #168...
Duplicates I have searched the existing issues Latest version I have tested the latest version Current behavior 😯 Using useAction with non trivial server side code causes a silent crash on the clie...
sh03
sh03OP2mo ago
Thanks anyway
mdynnl
mdynnl2mo ago
it gave me this and the error went away after installing it
No description
sh03
sh03OP2mo ago
Makes sense but the problem is that the component doesn't get hydrated. See the readme of that repo
mdynnl
mdynnl2mo ago
right, i missed that. it seems the error got swallowed by lazy helper the error caused by executing google-auth-library code in the browser that is

Did you find this page helpful?