Deleted UI Extension, now app won't deploy

Topic summary

A developer deleted a Checkout UI Extension from their Shopify app project and now faces deployment failures affecting the entire application.

Current Issue:

  • After removing the extension code, the app cannot deploy
  • Error message appears garbled/reversed but references React hooks (useState, dispatch) and Node modules
  • The deployment blockage prevents pushing updates to other app extensions

Technical Context:

  • Error originates from @shopify/cli-kit React development files
  • Stack trace points to useState hook initialization issues
  • Suggests potential configuration or dependency problems after extension deletion

Status: Unresolved - seeking help to restore deployment capability

Summarized with AI on November 9. AI used: claude-sonnet-4-5-20250929.

Hello,

I have recently created a Checkout UI Extension for my Shopify app, just testing it around. After creation I determined I no longer needed it, so I deleted the code for the particular extension from the app project.

Afterwards, I’ve found that the app will no longer deploy. I’m getting the following error:

ERROR Cannot read properties of null (reading ‘useState’)

node_modules/@shopify/cli-kit/node_modules/react/cjs/react.development.js:1622:21

1619: }
1620: function useState(initialState) {
1621: var dispatcher = resolveDispatcher();
1622: return dispatcher.useState(initialState);

This is impacting our entire app as we cannot push any updates to our other app extensions. Please help.