Generate Checkout UI Extension Problem

Everytime i try to generate an Checkout UI extension, i get this problem even if all things are updated to the last version ect. Do someone know why ?

Type reference for purchase.checkout.block.render could not be found. │
│ You might be using the wrong @shopify/ui-extensions version. Fix the │
│ error by ensuring you install @shopify/ui-extensions@2025-07 in your │
│ dependencies. │
│ │
│ To investigate the issue, examine this stack trace: │
│ at Fix the error by ensuring you install @shopify/ui-extensions │
│ at getSharedTypeDefinition (opt/homebrew/Cellar/shopify-cli/3.78.0/lib │
│ exec/lib/node_modules/@shopify/cli/dist/index.js:220684) │
│ at contributeToSharedTypeFile (opt/homebrew/Cellar/shopify-cli/3.78.0/ │
│ libexec/lib/node_modules/@shopify/cli/dist/index.js:220613) │
│ at all │
│ at generateExtensionTypes (opt/homebrew/Cellar/shopify-cli/3.78.0/libe │
│ xec/lib/node_modules/@shopify/cli/dist/index.js:218431) │
│ at loaded (opt/homebrew/Cellar/shopify-cli/3.78.0/libexec/lib/node_mod │
│ ules/@shopify/cli/dist/index.js:221059) │
│ at task (opt/homebrew/Cellar/shopify-cli/3.78.0/libexec/lib/node_modul │
│ es/@shopify/cli/dist/index.js:233872) │
│ at async runTask2 (opt/homebrew/Cellar/shopify-cli/3.78.0/libexec/lib/ │
│ node_modules/@shopify/cli/dist/chunk-R2JN4S25.js:30894) │
│ at (opt/homebrew/Cellar/shopify-cli/3.78.0/libexec/lib/node_modules/@s
│ hopify/cli/dist/chunk-R2JN4S25.js:30910)

Hi @Apotheose

Based on your stacktrace it looks like you’ve installed the Shopify CLI via Homebrew.

I didn’t know they added that option, that’s interesting.

The error message states:

You might be using the wrong @shopify/ui-extensions version. Fix the │
│ error by ensuring you install @shopify/ui-extensions@2025-07 in your │
│ dependencies

You mentioned that this error is happening during generation right? Does it get to the point where it actually creates the extension’s directory and package.json and shopify.app.toml?

If so, can you share those?

In the past, I had generation issues using yarn. Even though the documentation states that yarn is supported, in practice I had compatibility issues with it.

The Shopify Developer I spoke to recommended using pnpm instead, it’s become the defacto standard.

I would recommend removing the Homebrew managed version of the Shopify CLI and reinstalling via pnpm as an experiment.

Thank you ! I did the change to pnpm and it worked directly. So yeah i think the problem was same as you with yarn

Sure thing, glad I could help!