Skip to content

Use with Cloudflare Workers: The need for "node:async_hooks"? #49

Description

@PizzaConsole

Hey, amazing project!

I was just wondering on the need for the "node:async_hooks". Specifically because I want to use this in a Cloudflare workers project and I do not really want to have to enable "nodejs_compat"

X [ERROR] Build failed with 1 error:

   X [ERROR] Could not resolve "async_hooks"

       ../../node_modules/.pnpm/@gqloom+core@0.8.2_graphql@16.10.0/node_modules/@gqloom/core/dist/index.js:58:34:
         58 │ import { AsyncLocalStorage } from "async_hooks";
            ╵                                   ~~~~~~~~~~~~~

     The package "async_hooks" wasn't found on the file system but is built into node.
     - Add the "nodejs_compat" compatibility flag to your project.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions