Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

theme app extension push with cli 3.0 need help

theme app extension push with cli 3.0 need help

1080
Shopify Partner
301 9 66

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 CLI version (check your project's package.json if you're not sure)

"@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 . 

Replies 5 (5)

abouda96
Shopify Partner
6 0 1

Hello 
did you find the solution 
I'm in the same situation , but after doing these steps  :

  1. Create package.json file at root of your project directory and copy content from shopify doc and paste

  2. npm install

  3. npm run shopify app generate extension

  4. npm run deploy

with the last cmd it indicates that will remove the old extension so I don't want to take this risk 😕

 

1080
Shopify Partner
301 9 66

@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.


peterpot20
Shopify Partner
22 2 3

@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.

1080
Shopify Partner
301 9 66

@peterpot20  share all the steps.

helping_all
Shopify Partner
1 0 0

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