Npm run dev error on running the shopify checkout extension project

Topic summary

A developer encounters a TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') when running npm run dev for a Shopify checkout extension project.

Error Details:

  • Occurs in react-reconciler at the ensureRootIsScheduled function
  • Stack trace shows the error originates from Ink rendering within Shopify CLI Kit
  • The error path includes references to @shopify/cli-kit, ink, and react-reconciler modules

Environment:

  • Latest Node.js version installed
  • Other React projects run successfully without issues
  • Project located at: ST_CHECKOUT_CUSTOMIZATION/lean-growth-app

Current Status:

  • The issue appears to be a dependency conflict or version mismatch between React, react-reconciler, and the Shopify CLI tooling
  • No solution has been provided yet
  • The developer is seeking help to identify the root cause
Summarized with AI on November 17. AI used: claude-sonnet-4-5-20250929.

Hi all,

I am trying to use the shopify checkout extension for my store but I encounter this error when running the project with the npm run dev command. I am on a latest version of nodejs… can’t figure out what’s the issue. I am able to run my other react projects without an error. appreciate your help!

Logged in.

TypeError: Cannot read properties of undefined (reading ‘isBatchingLegacy’)> at ensureRootIsScheduled (C:\Users\digan\Documents\RENERGII\ST_CHECKOUT_CUSTOMIZATION\lean-growth-app\node_modules\react-reconciler\cjs\react-reconciler.development.js:17731:35)> at scheduleUpdateOnFiber (C:\Users\digan\Documents\RENERGII\ST_CHECKOUT_CUSTOMIZATION\lean-growth-app\node_modules\react-reconciler\cjs\react-reconciler.development.js:17636:5)> at Object.updateContainer (C:\Users\digan\Documents\RENERGII\ST_CHECKOUT_CUSTOMIZATION\lean-growth-app\node_modules\react-reconciler\cjs\react-reconciler.development.js:21022:5)> at Ink.render (file:///C:/Users/digan/Documents/RENERGII/ST_CHECKOUT_CUSTOMIZATION/lean-growth-app/node_modules/ink/build/ink.js:226:20)> at render (file:///C:/Users/digan/Documents/RENERGII/ST_CHECKOUT_CUSTOMIZATION/lean-growth-app/node_modules/ink/build/render.js:19:14)> at renderString (file:///C:/Users/digan/Documents/RENERGII/ST_CHECKOUT_CUSTOMIZATION/lean-growth-app/node_modules/@shopify/cli-kit/dist/private/node/ui.js:39:22)> at renderOnce (file:///C:/Users/digan/Documents/RENERGII/ST_CHECKOUT_CUSTOMIZATION/lean-growth-app/node_modules/@shopify/cli-kit/dist/private/node/ui.js:7:33)> at renderFatalError (file:///C:/Users/digan/Documents/RENERGII/ST_CHECKOUT_CUSTOMIZATION/lean-growth-app/node_modules/@shopify/cli-kit/dist/public/node/ui.js:217:12)> at handler (file:///C:/Users/digan/Documents/RENERGII/ST_CHECKOUT_CUSTOMIZATION/lean-growth-app/node_modules/@shopify/cli-kit/dist/public/node/error.js:113:5)> at file:///C:/Users/digan/Documents/RENERGII/ST_CHECKOUT_CUSTOMIZATION/lean-growth-app/node_modules/@shopify/cli-kit/dist/public/node/error-handler.js:27:20> C:\Users\digan\Documents\RENERGII\ST_CHECKOUT_CUSTOMIZATION\lean-growth-app\node_modules\react-reconciler\cjs\react-reconciler.development.js:17731> if ( ReactCurrentActQueue$1.isBatchingLegacy !== null) {> ^> > TypeError: Cannot read properties of undefined (reading ‘isBatchingLegacy’)> at ensureRootIsScheduled (C:\Users\digan\Documents\RENERGII\ST_CHECKOUT_CUSTOMIZATION\lean-growth-app\node_modules\react-reconciler\cjs\react-reconciler.development.js:17731:35)> at scheduleUpdateOnFiber (C:\Users\digan\Documents\RENERGII\ST_CHECKOUT_CUSTOMIZATION\lean-growth-app\node_modules\react-reconciler\cjs\react-reconciler.development.js:17636:5)> at Object.updateContainer (C:\Users\digan\Documents\RENERGII\ST_CHECKOUT_CUSTOMIZATION\lean-growth-app\node_modules\react-reconciler\cjs\react-reconciler.development.js:21022:5)> at Ink.unmount (file:///C:/Users/digan/Documents/RENERGII/ST_CHECKOUT_CUSTOMIZATION/lean-growth-app/node_modules/ink/build/ink.js:284:20)> at EventEmitter.emit (node:events:525:35)> at EventEmitter.emit (node:domain:489:12)> at emit (C:\Users\digan\Documents\RENERGII\ST_CHECKOUT_CUSTOMIZATION\lean-growth-app\node_modules\signal-exit\index.js:105:13)> at process.processEmit [as emit] (C:\Users\digan\Documents\RENERGII\ST_CHECKOUT_CUSTOMIZATION\lean-growth-app\node_modules\signal-exit\index.js:193:7)> at process.exit (node:internal/process/per_thread:190:15)> at process.

1 Like