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

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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 9
  • Comments: 16 (3 by maintainers)

Most upvoted comments

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

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 😄

@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

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

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.