Skip to content
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

using nexus with cloudflare workers #1147

Open
Mdev303 opened this issue Dec 30, 2022 · 1 comment
Open

using nexus with cloudflare workers #1147

Mdev303 opened this issue Dec 30, 2022 · 1 comment

Comments

@Mdev303
Copy link

Mdev303 commented Dec 30, 2022

Hello , is it possible to use nexus with cloudflare workers ? I got a lot of errors when I tried , is there a setup to follow ?

@aimproxy
Copy link

aimproxy commented Jan 4, 2024

While experimenting with this library too, turns out that this library depends relies on Node.JS APIs such as fs and path.
https://github.com/graphql-nexus/nexus/blob/main/src/node.ts

Cloudflare Workers do not support these modules, even with nodejs_compat = true. I recommend trying GQTX, which shares similarities with Nexus but is Node.JS free and compatible with Cloudflare Workers.
https://github.com/sikanhe/gqtx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants