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
Not working on Cloudflare Workers #18
Comments
Need to polyfill the global object |
Thanks got it working using https://www.npmjs.com/package/@ungap/global-this. Now I'm having another problem with CORS. The endpoint can be called directly (example Thank you for the help! |
Actually I'm dumb.. the worker tried calling the localhost trpc server in production. Everything works now, thanks for the awesome Nuxt TRPC implementation! |
@wobsoriano Do have time for another question regarding running on Cloudflare Workers? It seems that using |
@wobsoriano hi, do you have any update on my second issue? |
Hey, just released v3. Probably fixes your issue @essarn |
Yes it should work, looking forward to using the library with v10 support. |
It's not possible to run this when deployed on Cloudflare Workers. I'm getting the error
global is not defined
. Might have something to do with how the fetch workers there. Maybe this two repos could be of help to solve the problem.https://github.com/esamattis/trpc-cloudflare-worker
https://github.com/valu-digital/npm-packages/tree/master/packages/trpc-fetch-api-adapter
The text was updated successfully, but these errors were encountered: