Shopify run dev CLI error - Cannot read properties of undefined (reading 'forEach')

Hello,

I’m having error running my npm run dev scripts. It was running fine at first, and then I ran new extension for checkout ui, after that it crashes everytime I run it. I tried running it with – --reset and tried reinstalling CLI with no luck.

When running --verbose
query FindApp and query allAppExtensionRegistrations was the last few queries being made.

Im running macOS and node version 18 CLI version 3.53.1

2 Likes

Having the same issue. But for me to recreate, I created the app with “npm init @Shopify_77 /app@latest” and for get started building your app, instead of the remix option I chose Start by adding your first extension. Once I try to run npm run generate extension it throws me that same error.

1 Like