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

kulit
Shopify Partner
2 0 1

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.

kulit_0-1706081273513.png


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

Reply 1 (1)

davidg123
Shopify Partner
9 1 4

Having the same issue. But for me to recreate, I created the app with "npm init @Shopify/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.