We fix the rsbuild SSR server startup crash ("Client-only API called on the server side") by extending the tanstackStart rsbuild plugin to also tap the native solid loader options, not just babel presets. With @rsbuild/plugin-solid@2.0.0-beta.2 defaulting to compiler='native', there is no babel-preset-solid entry in the babel chain to patch, so the SSR generate option was never applied and server bundles were compiled as DOM code. The added code path targets CHAIN_ID.ONE_OF.JS_MAIN > use('solid') and sets { generate: 'ssr', hydratable: true } for node targets, mirroring what the babel path already did for the old compiler.
Failed after BDBrenley DueckView latest
chore(solid): bump to solid-js 2.0.0-rc.4 and @solidjs/vite-plugin 3.0.0-next.35
8189ce205a6Open on GitHubThis code change can't be applied
A fix is available, but it can't be applied automatically because the branch is outdated. Please sync the branch, then apply the fix locally below.