-
Notifications
You must be signed in to change notification settings - Fork 73
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
The package "http2" wasn't found on the file system but is built into node #649
Comments
Internal ticket number is FE-2503 |
Which version of Node.js, Since To test that theory, can you replace your |
I've tried deleting the
I believe the problem is related to the way the app bundle is created. I've put together a dummy repo with Cloudflare Workers &
|
Facing the same error when using the latest fresh install of Remix with the target set as Cloudflare Workers. |
Same here, whatever options ES Build is using for Wrangler 2 is tripping over Fauna |
I notice that there is a PR that adds support for Cloudflare Module Workers. This PR has – sadly – not been merged yet. Maybe this change will correct the problem with the Fauna driver? |
I am not sure, but it could be that this problem is two-fold. So to get the Fauna driver to work with Remix using Cloudflare Workers, two issues need to be addressed:
|
Still facing the same problem. Would be nice if there is at least some patch that we can add locally to make it work with |
Have you tried to do with Remix and Cloudfare Pages? (not CF workers) |
No, my production application is built with cloudflare workers and also I want to make use of Service Bindings. So, moving to cloudflare pages is a no-go for me at this time. I want to use service bindings which will only work with Wrangler2, but wrangler2 doesn’t work with Fauna. |
The latest version of Wrangler 2 (v2.9.1+) is compatible with the JS driver. But we are looking into what we can do to help with the fact that the default setup for Cloudflare and Remix is not working. cc: @Shadid12 |
Description
I'm trying to use faunadb in a Remix project with Cloudflare Workers as a deployment method, but when I'm trying to build or run a local dev server I get the following error:
Stack trace:
Steps to reproduce
Reproduction repo: https://github.com/mccuna/faunadb-cloudflare-workers-http2-issue
npm install
npm run build
(the issue reproduces when runningnpm run dev:remix
too, so it's not something related to the production build itself)Extra notes
The application I'm working on makes use of 2 Cloudflare Workers:
The Cloudflare Worker B using the Module Worker syntax has
type: "module"
inpackage.json
and in this one, faunadb works perfectly fine.The text was updated successfully, but these errors were encountered: