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

Module not found: Can't resolve 'async_hooks' #51

Open
DavidChouinard opened this issue Jan 25, 2025 · 1 comment · May be fixed by #52
Open

Module not found: Can't resolve 'async_hooks' #51

DavidChouinard opened this issue Jan 25, 2025 · 1 comment · May be fixed by #52

Comments

@DavidChouinard
Copy link

Upgrading to @vercel/flags 3.1.0 from 2.x results in this error for us:

Module not found: Can't resolve 'async_hooks'
  4 |
  5 | // src/lib/tracing.ts
> 6 | import { AsyncLocalStorage } from "async_hooks";
    | ^
  7 | var vercelFlagsTraceSymbol = Symbol.for("@vercel/flags:global-trace");
  8 | function setTracerProvider(tracer) {
  9 |   Reflect.set(globalThis, vercelFlagsTraceSymbol, tracer);

Any way to rectify?

@wootsbot
Copy link

Hi, I'm also facing the same issue after upgrading to @vercel/flags 3.1.0. I'm getting an error related to the async_hooks module:

@wootsbot wootsbot linked a pull request Jan 30, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants