Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: CLI 3.74.0 The installed version of the Shopify Functions JavaScript library is not compatible with this version of Shopify CLI. #5238

Open
2 tasks done
ivanzamoraarias opened this issue Jan 20, 2025 · 15 comments
Labels
Area: Functions issues with functions Type: Bug Something isn't working

Comments

@ivanzamoraarias
Copy link

Please confirm that you have:

  • Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
  • Reproduced the issue in the latest CLI version.

In which of these areas are you experiencing a problem?

Function

Expected behavior

When shopify app deploy -f --source-control-url "COMMIT_URL" is sent with the latest CLI it should deploy correctly if you are using the latest version of functions , cli and extentions.

Actual behavior

When shopify app deploy -f --source-control-url "COMMIT_URL" it says that "The installed version of the Shopify Functions JavaScript library is not \compatible with this version of Shopify CLI."

Verbose output

Verbose output

On Friday I installed my project for shopify functions and it deployed correctly.
Today Monday , 7 hours after the new release , I deployed my project and got this error:
"The installed version of the Shopify Functions JavaScript library is not \compatible with this version of Shopify CLI."
Which is a problem because I always install it with the "latest" version aka 3.74.0

This is a bug because I am using the latest CLI and functions for deployment.

╭─ error ──────────────────────────────────────────────────────────────────────╮
│                                                                              │
│  Failed to build function.                                                   │
│                                                                              │
│  The installed version of the Shopify Functions JavaScript library is not    │
│  compatible with this version of Shopify CLI.                                │
│                                                                              │
╰──────────────────────────────────────────────────────────────────────────────╯

Reproduction steps

  1. use any project created prior Monday 20 with shopify extentions
  2. deploy it usiing this command shopify app deploy
  3. you will get an error saying the versions are different

Operating System

ubuntu-latest

Shopify CLI version (shopify --version)

3.74.0

Shell

No response

Node version (run node -v if you're not sure)

v18.20

What language and version are you using in your application?

JS

@ivanzamoraarias ivanzamoraarias added the Type: Bug Something isn't working label Jan 20, 2025
@johnxy84
Copy link

johnxy84 commented Jan 21, 2025

I'm also experiencing this on the latest version i.e https://www.npmjs.com/package/@shopify/cli/v/3.74.0 but it works on 3.73.2

@ivanzamoraarias
Copy link
Author

I'm also experiencing this on the latest version i.e https://www.npmjs.com/package/@shopify/cli/v/3.74.0 but it works on 3.73.2

Yes , workaround is downgrading the version. But this must be fixed otherwise we wont be able to use the newest CLI updates.

@s-prestele-tqgg
Copy link

s-prestele-tqgg commented Jan 21, 2025

I am having the same issue. And unfortunately downgrading wont allow the use of: wasm_opt for optimizing the wasm output of shopify functions when using Rust.

@craigmichaelmartin craigmichaelmartin added the Area: Functions issues with functions label Jan 21, 2025
@Ritik-OSCP
Copy link

Anyone found a work around?

@Janarcho2
Copy link

Same here ...

@appl3burg3r
Copy link

Same issue - for me deploying through my local cli instead of CI/CD solved it for now. Probably have to downgrade.

@n8cotoa
Copy link

n8cotoa commented Jan 22, 2025

Updating the extension dependency for @shopify/shopify_function to the latest version (1.0.3 at time of writing this) and then re-running npm i seemed to fix the issue for me

Running Shopify CLI version 3.74.0

@sillycube
Copy link

The same... So painful to deal with these dependency issues

@andrewhassan
Copy link
Contributor

Hi 👋 Thank you all for reporting this issue. We recently introduced validation that the @shopify/shopify_function package version is compatible with the CLI, which excluded version 0.x.y. We will release a new version of the CLI with a fix allowing the use of @shopify/shopify_function version 0.x.y. However, we highly recommend upgrading to the latest version for improved function performance.

@ivanzamoraarias
Copy link
Author

Hi 👋 Thank you all for reporting this issue. We recently introduced validation that the @shopify/shopify_function package version is compatible with the CLI, which excluded version 0.x.y. We will release a new version of the CLI with a fix allowing the use of @shopify/shopify_function version 0.x.y. However, we highly recommend upgrading to the latest version for improved function performance.

thank you for your kind response, Could you also provide an update on extentions base project(maybe on this thread) because this is just one of the issues of using the latest version on the CLI(from the begining of January). For example openssl now needs to be installed before the CLI and remix. I know updates are great but it kinda made us run in circles. thanks

@remy727
Copy link

remy727 commented Jan 23, 2025

Same here.

@sillycube
Copy link

@andrewhassan

It may be better to include a message like "Please upgrade @shopify/shopify_function to a newer version. " Most users don't know how to resolve The installed version of the Shopify Functions JavaScript library is not compatible with this version of Shopify CLI.. We just think that it's a CLI internal conflict

@ivanzamoraarias
Copy link
Author

@andrewhassan

It may be better to include a message like "Please upgrade @shopify/shopify_function to a newer version. " Most users don't know how to resolve The installed version of the Shopify Functions JavaScript library is not compatible with this version of Shopify CLI.. We just think that it's a CLI internal conflict

yes, also remember that the base project is set to get latest versions on the package.json

@s-prestele-tqgg
Copy link

Hi 👋 Thank you all for reporting this issue. We recently introduced validation that the @shopify/shopify_function package version is compatible with the CLI, which excluded version 0.x.y. We will release a new version of the CLI with a fix allowing the use of @shopify/shopify_function version 0.x.y. However, we highly recommend upgrading to the latest version for improved function performance.

I have upgraded to 1.0.3 but still experience the same error

@andrewhassan
Copy link
Contributor

Hey folks 👋 We've released version 3.74.1 of the CLI which allows for the use of versions 0.x.y and 1.x.y of @shopify/shopify_function and makes the error message clearer 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Functions issues with functions Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests