We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8db8e1 commit 2908e1fCopy full SHA for 2908e1f
node_package/src/reactHydrateOrRender.ts
@@ -16,9 +16,8 @@ if (supportsRootApi) {
16
// eslint-disable-next-line global-require,@typescript-eslint/no-require-imports
17
reactDomClient = require('react-dom/client') as typeof import('react-dom/client');
18
} catch (_e) {
19
- // We should never get here, but if we do, we'll just use the default ReactDOM
20
- // and live with the warning.
21
- reactDomClient = ReactDOM as unknown as typeof import('react-dom/client');
+ // We should never get here.
+ console.error('Failed to load react-dom/client');
22
}
23
24
0 commit comments