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
Hello, I’m Allie!
You need nodejs_compat, and then import node:async_hooks
Narek
NarekOP16mo ago
and what if the npm package it's already written require("async_hooks"), how to deal with that?
Narek
NarekOP16mo ago
os is working correctly, async hooks is not working
No description
Narek
NarekOP16mo ago
@HardlySpookin’ THank you for answering to my questions, I am newbie here )))
pekings
pekings2mo ago
@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?
David
David2mo ago
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
David
David2mo ago
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...
Hello, I’m Allie!
?pings
Flare
Flare2mo ago
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.
Hello, I’m Allie!
Also, please don’t necro old threads

Did you find this page helpful?