The package "async_hooks" wasn't found on the file system
I turned on
node_compat
flag in wrangler toml, but seems it still can't find it, its calling with require("async_hooks")11 Replies
You need
nodejs_compat
, and then import node:async_hooks
and what if the npm package it's already written require("async_hooks"), how to deal with that?
Maybe an esbuild alias
os is working correctly, async hooks is not working
@HardlySpookin’ THank you for answering to my questions, I am newbie here )))
@Hello, I’m Allie!hi, today i have faced this problem when i build next pages with the same code yesterday. how to fix it?
I'm not the only guy to encounter this issue. Any suggestions to fix the problem? It was working yesterday.
Failed to build using the last successful deployment
Found this in pages-help channel: https://discord.com/channels/595317990191398933/1311186008288661584 https://github.com/cloudflare/next-on-pages/issues/908
GitHub
[🐛 Bug]: ERROR Could not resolve "async_hooks" · Issue #908 · cloud...
next-on-pages environment related information System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000 CPU...
?pings
Please do not ping community members for non-moderation reasons. Doing so will not solve your issue faster and will make people less likely to want to help you.
Also, please don’t necro old threads