I have reproduced the issue on the latest CLI version.
Yes, I am on the latest version
I have searched existing posts and this report is not a duplicate.
Yes, this isn’t a duplicate
In which of these areas are you experiencing a problem?
App
Expected behavior
Using an npm-installed version of shopify cli:
- Generate a new app via
shopify app init - Generate a new extension via
shopify app generate extension - Extension generates correctly
Actual behavior
Using an npm-installed version of shopify cli:
- Generate a new app, this appears to work correctly
- Generate a new extension, this fails with a variety of pnpm errors
Reproduction steps
Using an npm-installed version of shopify cli:
- Generate a new app via
shopify app init - Generate a new extension via
shopify app generate extension
Eventually working through the pnpm errors which involved installing pnpm, approving certain packages, generally messing around, ultimately still failed with a missing command error to do with graphql types.
I tried again with the steps below and it seems to work as expected:
Using an npm-installed version of shopify cli:
- Generate a new app via
shopify app init - Delete the
pnpm-workspace.yamlfile that is in the new app and delete all node_modules - run
npm i - Generate a new extension via
shopify app generate extension - Extension is generated with no errors and everything works normally
Verbose output
n/a
Operating system
MacOS 26.5
CLI version
@shopify/cli/4.2.0 darwin-arm64 node-v24.0.1
Shell
zsh
Nodejs version
24.0.1
What language and version are you using in your application?
Javascript