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
Fix React 19 webpack server rendering configuration
The previous commit incorrectly set target: 'node' unconditionally for all
dummy apps, which broke ExecJS server rendering with the error:
"TypeError: require is not a function"
The issue: When target: 'node' is set without libraryTarget: 'commonjs2',
webpack doesn't export the bundle properly for Node.js-style requires.
Changes:
- spec/dummy: Commented out target: 'node' (uses ExecJS, needs default 'web' target)
- execjs-compatible-dummy: Commented out target: 'node' (uses ExecJS)
- Pro dummy: Kept target: 'node' + added React 19 conditionNames fix (uses Node renderer)
- Generator template: Commented out target: 'node' (default for new apps is ExecJS)
The React 19 conditionNames fix is only needed when using target: 'node'
with the Node renderer to prevent webpack from resolving to react-server
condition.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments