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
'Internal Error: do not use legacy react-dom/server APIs. If you encountered this error, please open an issue on the Next.js repo.';
25
33
26
34
return{
27
-
...ReactDOMServer,
35
+
...ReactDOMServerBrowser,
28
36
default: {
29
-
...ReactDOMServer.default,
37
+
...ReactDOMServerBrowser,
30
38
renderToString(){
31
39
thrownewError(ERROR_MESSAGE);
32
40
},
@@ -48,12 +56,10 @@ describe('render on the edge', () => {
48
56
expect(actualOutput).toMatchInlineSnapshot(
49
57
`"<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><link rel="preload" as="image" href="img/test.png"/><!--$--><h1>Welcome, <!-- -->Jim<!-- -->!</h1><img alt="test" src="img/test.png"/><p>Thanks for trying our product. We're thrilled to have you on board!</p><!--/$-->"`,
50
58
);
51
-
52
-
vi.resetAllMocks();
53
59
});
54
60
55
61
// This is a test to ensure we have no regressions for https://github.com/resend/react-email/issues/1667
56
-
it('should handle characters with a higher byte count gracefully in React 18',async()=>{
62
+
it('should handle characters with a higher byte count gracefully',async()=>{
0 commit comments