App reviews, troubleshooting, and recommendations
Hello Guys,
I have created a brand new node app through shopify cli.
The app starts good, works good.
I have installed this package and than the app is completly broken: npm install --save @Shopify/shopify-api
I have found here: https://shopify.dev/api/admin-graphql#top
The error what i got is the next one:
Error: Context has not been properly initialized. Please call the .initialize() method to setup your app context object.
┃ at UninitializedContextError.ShopifyError [as constructor] (D:\Projects\Shoppify\test1\node_modules\@shopify\koa-shopify-auth\node_modules\@shopify\shopify-api\dist\error.js:13:28)
┃ at new UninitializedContextError (D:\Projects\Shoppify\test1\node_modules\@shopify\koa-shopify-auth\node_modules\@shopify\shopify-api\dist\error.js:63:42)
┃ at Object.throwIfUninitialized (D:\Projects\Shoppify\test1\node_modules\@shopify\koa-shopify-auth\node_modules\@shopify\shopify-api\dist\context.js:66:19)
┃ at Object.<anonymous> (D:\Projects\Shoppify\test1\node_modules\@shopify\koa-shopify-auth\node_modules\@shopify\shopify-api\dist\auth\oauth\oauth.js:38:43)
┃ at step (D:\Projects\Shoppify\test1\node_modules\@shopify\koa-shopify-auth\node_modules\@shopify\shopify-api\node_modules\tslib\tslib.js:143:27)
┃ at Object.next (D:\Projects\Shoppify\test1\node_modules\@shopify\koa-shopify-auth\node_modules\@shopify\shopify-api\node_modules\tslib\tslib.js:124:57)
┃ at D:\Projects\Shoppify\test1\node_modules\@shopify\koa-shopify-auth\node_modules\@shopify\shopify-api\node_modules\tslib\tslib.js:117:75
┃ at new Promise (<anonymous>)
┃ at Object.__awaiter (D:\Projects\Shoppify\test1\node_modules\@shopify\koa-shopify-auth\node_modules\@shopify\shopify-api\node_modules\tslib\tslib.js:113:16)
┃ at Object.beginAuth (D:\Projects\Shoppify\test1\node_modules\@shopify\koa-shopify-auth\node_modules\@shopify\shopify-api\dist\auth\oauth\oauth.js:33:24)
┃ at D:\Projects\Shoppify\test1\node_modules\@shopify\koa-shopify-auth\dist\src\auth\index.js:61:73
┃ at step (D:\Projects\Shoppify\test1\node_modules\tslib\tslib.js:133:27)
┃ at Object.next (D:\Projects\Shoppify\test1\node_modules\tslib\tslib.js:114:57)
┃ at D:\Projects\Shoppify\test1\node_modules\tslib\tslib.js:107:75
┃ at new Promise (<anonymous>)
┃ at Object.__awaiter (D:\Projects\Shoppify\test1\node_modules\tslib\tslib.js:103:16)
I have attached my package-json files too.
What could go wrong?
Thank you for your help Guys in advance.
Solved! Go to the solution
This is an accepted solution.
The solution was something completly different.
It package was not correctly initialized.
Through the latest shopify CLI when we create a new node app this package has been set correctly.
Did you manage to find a solution?
This thread mentions uninstalling shopify api module but tried it and it doesn't work either. I think may it needs to be a specific version of the module?
Ah fixed.
Run
npm uninstall @Shopify/shopify-api
then run
npm install @Shopify/koa-shopify-auth
and that will do it
This is an accepted solution.
The solution was something completly different.
It package was not correctly initialized.
Through the latest shopify CLI when we create a new node app this package has been set correctly.
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024