Open AngeloTallarita opened 4 weeks ago
I can confirm the issue by patching react-dom/client
and it works
diff --git a/es/React/render.js b/es/React/render.js
index 169f01b2998a21ba42fa7b7a397ee526ad2aacb4..62793f70ab5e9d9488800b8dd3a866c67a14a943 100644
--- a/es/React/render.js
+++ b/es/React/render.js
@@ -2,7 +2,7 @@ import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
import _typeof from "@babel/runtime/helpers/esm/typeof";
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
-import * as ReactDOM from 'react-dom';
+import * as ReactDOM from 'react-dom/client';
// Let compiler not to search module usage
var fullClone = _objectSpread({}, ReactDOM);
var version = fullClone.version,
Hi everyone, I'm currently working on a project testing the new release candidate version of react 19. I noticed that when calling the
render
function defined here it throws the errorreactRender is not a function
. It looks likecreateRoot
is not found when used with react 19-RC and this leads to use thelegacyRender
that of course will not work. I suspect there's some problem related on howcreateRoot
it's imported, here the official reference from react where it's imported fromreact-dom/client
and not fromreact-dom
. Thanks in advance for the support!