New Shopify Certification now available: Liquid Storefronts for Theme Developers

theme app extension push with cli 3.0 need help

1080
Shopify Partner
278 8 39

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 4 (4)
abouda96
Shopify Partner
5 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
278 8 39

@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
19 2 1

@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
278 8 39

@peterpot20  share all the steps.