Questions and discussions about using the Shopify CLI and Shopify-built libraries.
After upgrading shopify/koa-shopify-auth library to v5.0.3 I get this error message as part of the /auth route during application load.
I managed to track the root cause in the code to this new change:
It seems that although I initialize the context during app start, when the koa-shopify-auth package use it, its empty and not initialized
These version are being used:
Any assistance will be appreciated
Solved! Go to the solution
This is an accepted solution.
Hi @assafl. Are you explicitly adding `@shopify/shopify-api@2.0.1` as a dependency to your project? If so, I'd recommend removing it from the package.json file, and implicitly use the version of the library included by the `@shopify/koa-shopify-auth` package because it uses v2.1.0.
To learn more visit the Shopify Help Center or the Community Blog.
This is an accepted solution.
Hi @assafl. Are you explicitly adding `@shopify/shopify-api@2.0.1` as a dependency to your project? If so, I'd recommend removing it from the package.json file, and implicitly use the version of the library included by the `@shopify/koa-shopify-auth` package because it uses v2.1.0.
To learn more visit the Shopify Help Center or the Community Blog.
Eventually it was indeed a matter of using the correct versions for me
I must say that there was no place mentioning this relationship between the libraries and its importance for upgrading koa-shopify-auth package
Maybe you should consider specifying this as a prerequisite for the upgrading process