Closed jhakeinson closed 1 year ago
I just created my own custom auth Middleware instead and stop using this one entirely.
On Sat, Nov 6, 2021, 8:43 PM Corentin Grall @.***> wrote:
Has some found a workaround ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Shopify/koa-shopify-auth/issues/132#issuecomment-962446144, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI2EOXTRZJYEN5UQGOTCAY3UKUPFJANCNFSM5HCE7CMA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
FYI: There is a thread that helped me out here by changing the version numbers: https://community.shopify.com/c/shopify-apis-and-sdks/shopify-koa-auth-importing-a-local-version-of-shopify-shopify/td-p/1114138
Hi! I am facing the very same problem.
I want to use the latest API version, ApiVersion.October21
, but I can't because koa-shopify-auth
does not support the latest @shopify/shopify-api
.
Is this package going to support the latest @shopify/shopify-api
?
Hi! I am facing the very same problem.
I want to use the latest API version,
ApiVersion.October21
, but I can't becausekoa-shopify-auth
does not support the latest@shopify/shopify-api
. Is this package going to support the latest@shopify/shopify-api
?
You can use my version of this library here: https://github.com/TheSecurityDev/simple-koa-shopify-auth (There are other numerous improvements as well).
@TheSecurityDev
Thanks for your reply.
I installed your package in my project. However, when I launch my app with shopify app serve
command, the app does not work with your package error.
Error: Cannot find module 'fs/promises'
What can I do to make it work properly?
@TheSecurityDev Thanks for your reply. I installed your package in my project. However, when I launch my app with
shopify app serve
command, the app does not work with your package error.Error: Cannot find module 'fs/promises'
What can I do to make it work properly?
That's strange. It's possible you need to update your version of NodeJS. But otherwise open an issue at https://github.com/TheSecurityDev/simple-koa-shopify-auth/issues
That's strange. It's possible you need to update your version of NodeJS. But otherwise open an issue at https://github.com/TheSecurityDev/simple-koa-shopify-auth/issues
I changed the Node.js version from 12.x
to 16.x
, and it worked fine 🎉
Thank you so much!!
Note that this repo is no longer maintained and this issue will not be reviewed. Prefer the official JavaScript API library. If you still want to use Koa, see simple-koa-shopify-auth for a potential community solution.
Issue summary
I noticed that this middleware depends on an outdated version of @shopify/shopify-api, so I installed the latest version via
npm install
. But when I proceeded to test/run my app. a Context has not been properly initialized error occurred.Expected behavior
My Shopify store should install or display my app without an error.
Actual behavior
I received this error:
Steps to reproduce the problem
npm install @shopify/shopify-api
shopify node serve
.