I’ve spent some time trying to update the repository with our UI extensions to React 19, but have found that any test that renders anything (e.g. component and hook tests) fail with the message:
TypeError: resolveUpdatePriority is not a function
at requestUpdateLane (node_modules/react-reconciler/cjs/react-reconciler.development.js:11826:11)
at Object.exports.updateContainer (node_modules/react-reconciler/cjs/react-reconciler.development.js:16681:16)
at render (node_modules/@remote-ui/react/build/cjs/render.js:64:14)
at Object.render (node_modules/@remote-ui/react/build/cjs/render.js:18:7)
at tests/utils/rendering.tsx:10:10
at node_modules/@remote-ui/testing/build/cjs/mount.js:17:5
at act (node_modules/@remote-ui/testing/build/cjs/mount.js:144:20)
at mount (node_modules/@remote-ui/testing/build/cjs/mount.js:16:3)
This was happening with these versions:
@remote-ui/testing: 1.4.4
@testing-library/react: 16.2.0
react-reconciler: 0.31.0
@shopify/ui-extensions-react: 2025.1.3
This seems to be something relating to react-reconciler
; however, downgrading that package to 0.29.0
results in the error changing to
TypeError: Cannot read properties of undefined (reading 'ReactCurrentOwner')
at Object.$$$reconciler [as default] (node_modules/react-reconciler/cjs/react-reconciler.development.js:491:46)
at Object.createReconciler (node_modules/@remote-ui/react/build/cjs/reconciler.js:14:45)
at Object.<anonymous> (node_modules/@remote-ui/react/build/cjs/render.js:14:38)
at Object.<anonymous> (node_modules/@remote-ui/react/build/cjs/index.js:6:14)
at Object.<anonymous> (node_modules/@remote-ui/react/index.js:1:120)
at Object.<anonymous> (node_modules/@shopify/ui-extensions-react/build/cjs/surfaces/checkout/render.js:6:13)
at Object.<anonymous> (node_modules/@shopify/ui-extensions-react/build/cjs/surfaces/checkout.js:6:14)
I imagine this is down to the @shopify/ui-extensions-react
package not having a release that’s compatible with React 19 – is this the case? If so, when can we expect a new release that unblocks the update to React 19? Thanks!