How can I resolve an API version error on Shopify?

I am trying to create a scaffold app but I got the error message in the terminal window:

API Deprecation Notice: {
message: ‘https://shopify.dev/api/usage/versioning#deprecation-practices’,
path: ‘https://storedevbooxi.myshopify.com/admin/api/2022-04/graphql.json
}

In the index.js file it is set to:

API_VERSION: ApiVersion.April22,

I tried to set it to January 22 with no luck. Can you give some help please.

Thanks,

Hi Amr01,

You can use the API_VERSION: ApiVersion.January22 without a problem. It is stable one.

You could set it up in the Shopify.Context.Initialize({…}) in your serve.js for example.