For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
Hi all,
I have shopify theme app extension build with the 2.0
now Shopify CLI 2.0 Sunset. Now i want make updates into the my theme app extension.
I have aded the CLi in the my node project.
I am getting the Error while ruining those command
`
npm run shopify app dev npm run shopify app deploy
`
Error
`
rror coming from `bundle install` Command failed with exit code 5: bundle install Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /home/user/.cache/shopify-gems-nodejs/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c /snap/ruby/317/bin/ruby extconf.rb checking for ffi.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir
`
"@shopify/app": "^3.20.1", "@shopify/cli": "^3.20.1",
and latesh "@shopify/app": "^3.47.5",
"@shopify/cli": "^3.47.5",
"@shopify/cli-kit": "^3.47.5",
But i am getting the same Error .
Hello
did you find the solution
I'm in the same situation , but after doing these steps :
Create package.json file at root of your project directory and copy content from shopify doc and paste
npm install
npm run shopify app generate extension
npm run deploy
with the last cmd it indicates that will remove the old extension so I don't want to take this risk 😕
@abouda96 you are doing the Correct steps.
same steps are working fine for me.
New extension push with thew new version you can make it any version live Shopify keeping the all version... So don't worry.
@1080 @abouda96 I replaced the package.json with https://shopify.dev/docs/apps/tools/cli/migrate#step-3-add-shopify-cli-as-a-project-dependency but still received the same error.
Use this commend
npm i bundle
install ruby version
3.2.0
and open system properties, then click environment variable, then dubleclick path add you ruby bin file like this
c:\Ruby-33-x64\bin