fix(turbopack): react-dom/server in rsc context#61165
Conversation
Stats from current PRDefault BuildGeneral
Client Bundles (main, webpack)
Legacy Client Bundles (polyfills)
Client Pages
Client Build Manifests
Rendered Page Sizes
Edge SSR bundle Size
Middleware size
Next Runtimes
build cache
|
aa620aa to
11a6628
Compare
Tests Passed |
11a6628 to
7d1b625
Compare
|
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @ForsakenHarmony and the rest of your teammates on |
|
This is not correct. https://github.com/facebook/react/pull/28271/files#r1491806641 It'll probably start erroring at runtime anyway because the implementation between the RSC version of "react" doesn't work with
|
|
The fix here is that we must unfortunately break Resend even outside Turbopack. |
|
Also isn't the fix here aliasing all of |

What?
Probably not the right solution, next.js disables the
react-serverimport condition in there somehow I thinkWhy?
Resend uses
@react-email/renderwhich usesrenderToStringfromreact-dom/server.Unfortunately importing
react-dom/serverwith thereact-serverimport condition leads to a broken bundle (which seems like a bug in react?).Closes PACK-2243
Fixes #57936