shopify2 app serve not working - giving unexpected error

Hi,

I used to run shopify2 app serve before and it used to work fine. Now, suddenly, when I run it, it gives the following error:

Your environment Ruby version, 2.6.10, is outside of the range supported by the CLI, 2.7.5..<3.2.0, and might cause incompatibility issues.
✓ ngrok tunnel running at https://db58-86-16-229-117.ngrok-free.app, with account…
✓ .env saved to project root
✗ error: For authentication issues, run shopify logout to clear invalid credentials
✗ An unexpected error occurred.
To submit an issue include the stack trace.
To print the stack trace, add the environment variable SHOPIFY_CLI_STACKTRACE=1.

Can someone please advise if a recent change with shopify is affecting this? How do I fix this please?

1 Like

I have the same problem.

And it happened, I think, because:

https://shopify.dev/changelog/cli-2-x-is-deprecated

and

https://shopify.dev/docs/apps/tools/cli/cli-2