Commit 92306ff
Fix CI: resolve RSC bundle and server bundle build errors
Two issues:
1. RSC bundle (127 errors): Remove server-bundle-generated.js import from
rsc-bundle.js. It includes RouterApp.server.jsx (traditional SSR component)
that uses react-redux/react-router with client-only React APIs incompatible
with the react-server condition. Client references are handled automatically
by the RSC loader/plugin.
2. Server bundle (3 errors): Add Node.js builtin fallbacks (path, fs, stream)
to server webpack config. react-on-rails-pro now includes RSC modules that
import these builtins, but they aren't used in the traditional SSR path.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent aaeba86 commit 92306ff
2 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
174 | 185 | | |
175 | 186 | | |
176 | 187 | | |
| |||
0 commit comments