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 4d67b8f commit 2d086fcCopy full SHA for 2d086fc
.changeset/mighty-clocks-live.md
@@ -0,0 +1,5 @@
1
+---
2
+'@module-federation/bridge-react': patch
3
4
+
5
+Fix react-bridge version check for React versions earlier than 16.13.0
packages/bridge/bridge-react/src/provider/compat.ts
@@ -1,7 +1,8 @@
import ReactDOM from 'react-dom';
import { CreateRootOptions, Root } from '../types';
-const isReact18 = ReactDOM.version.startsWith('18');
+// ReactDOM.version is only available in React 16.13.0 and later
+const isReact18 = ReactDOM.version?.startsWith('18');
6
7
/**
8
* Creates a root for a container element compatible with both React 16 and 18
0 commit comments