"Error: Failed to build gem native extension" after shopify app dev command

Topic summary

Issue: Users encountered a \

Summarized with AI on November 7. AI used: claude-sonnet-4-5-20250929.

I got it working finally (for windows). Here are the steps I followed. It might help someone.

  1. from ruby downloads (https://rubyinstaller.org/downloads/)) , I installed 3.0 version specifically as doc says: Ruby+Devkit 3.0.6-1 (x64)
  2. Installed the above ruby with all the options.
  3. Opened command prompt and ran this command (after all ruby installations): ridk enable
  4. Closed Visual Studio code and opened back with administrator permission (press windows icon > search vs code > right click > run as administrator)
  5. Opened respective project and ran: shopify theme dev (got another bundler version error)
  6. Ran following command: gem install bundler
  7. Then ran: shopify theme dev

And it worked :slightly_smiling_face:

14 Likes