Replies: 2 comments 3 replies
-
I think even if you keep your source code in the application side, it will still report an error. try {
const { createRoot } = require("react-dom/client");
} catch (err) {
const readDOM = require("react-dom");
} IMO, this should not be a runtime decision. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
3.当引用此包的宿主环境安装的react版本为17时,编译报错如下

Beta Was this translation helpful? Give feedback.
All reactions