This is my first time building a shopify custom app.
I'm following the guide documented here:
The first step was to run:
npm init @shopify/app@latest
I chose 'node' as my platform.
When complete, if i run:
npm run dev
the app starts fine.
However, if i try creating a theme app extension, by running:
npm run generate extension
and choosing 'theme app extension', it creates the extension folder under my project.
If i run the application again (using the same run command as before), I receive an error:
I'm not building a ruby project. What am i missing or doing wrong?
Hi @emalueg - thanks for getting in touch, this is for sure odd. My understanding is that Ruby is used as a dependency for many CLI based projects, even if you're running it through NPM. I'd recommend following the URL from the error message that's surfaced by the CLI and see if the issue is resolved after you've installed Ruby.
If the error persists, please reach out in our repo for the CLI itself here by opening an issue and we can help you out further that way. Hope this helps!
Al | Shopify Developer Support
Did you find the solution? I have a php based app and getting the same error.
Yeh unfortunately Ruby is a requirement for the CLI. It also needs to be 2.7 which is not available by default in most packages so it's a bit of a pain to install.
Ruby currently doesn't work at all on Win11 ARM64.
Theme extensions are pretty neat but uploading/updating them via GIT and running the validation on the Shopify's side would have been a better solution, oh well.