-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Description
Even tho the sveltekit package is importing AsyncLocalStorage
from node:asyn_hooks
:
import { AsyncLocalStorage } from 'node:async_hooks'; |
the tracing.ts
file is not prepending node:
,
import { AsyncLocalStorage } from 'async_hooks'; |
which is causing an error on build on cloudflare:
15:38:03.971 ✘ [ERROR] Build failed with 1 error:
15:38:03.972
15:38:03.972 ✘ [ERROR] Could not resolve "async_hooks"
15:38:03.972
15:38:03.972 ../output/server/chunks/flags.js:1:118:
15:38:03.972 1 │ ...syncLocalStorage as q}from"async_hooks";import{AsyncLocalStorage...
15:38:03.973 ╵ ~~~~~~~~~~~~~
15:38:03.973
15:38:03.973 The package "async_hooks" wasn't found on the file system but is built into node.
I already followed the suggestions (adding nodejs_compat
and the latest compatibility_date
) with no luck. What works is patching the flag package with bun patch
, but I need to do it on every update of the flags package (which is not a burden tbh but still would prefer not to do it manually everytime)
eser
Metadata
Metadata
Assignees
Labels
No labels