How to use nodejs_compat
but still polyfill node internals that are not supported yet?
#4489
Labels
nodejs compat
Relating to the node runtime compatibility flag
I'm running into a very similar issue, my workers depend on
async_hooks
for logging / instrumentation. I was experimenting with getting a direct PostgreSQL connection to work, instead of using a 'proxy' like Hasura, but indeed pg needsnode_compat
while asyncvery_hooks neednodejs_compat
, and the project won't build. Are here any work arounds for this?Edit:
@Cherry if your current use-case is using
pg
, an alternative that I found https://github.com/porsager/postgres, seems to be working just fine innodejs_compat
mode!_Originally posted by @ItsWendell in cloudflare/workerd#1856
The text was updated successfully, but these errors were encountered: