-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polyfill buffer
usage breaks Cloudflare Workers nodejs_compat_v2
#1130
Comments
Hi there, can you please provide some reproduction steps? I haven't been able to trigger this error in my CFW example app. |
Issue:
|
Thank you @EnriqueRuvalcaba for the super detailed report! I'll have a look through this and get back to you. |
same issue |
Hi! Do you have any updates on the issue? I am experiencing the same problem with |
+1 to this whole thread, I workos is a great tool, but this is limiting for folks building on cloudflare. In our case we could not implement some observability and distributed tracing from baselime as it requires enabling cloudflare's After checking iron-session does seem "just" (famous last words) a package update could be all that's needed, so i tried it and seems to be working on my end. There's still some issues, made a PR here #1156 explaining what I found, (feel free to do whatever with that PR). I did package/release my hacked-together fork in https://www.npmjs.com/package/@fforres/workos-inc-node. I STRONGLY recommend that you don't use it, here be dragons and all that. It worked on my case, but if you are truly blocked, be my guest |
Cloudflare Workers will now support better NodeJS compatibility as announced here. However, the package currently relies on
iron-webcrypto
that usesbuffer
polyfill and it leads tonodejs_compat_v2
facing the issue below:Current workaround
Replace
buffer/index.js
withnode:buffer
in thenode_modules
deps before the build step.The text was updated successfully, but these errors were encountered: