Automattic / monk

The wise MongoDB API
MIT License
1.85k stars 182 forks source link

monk not working with node v18.8 on windows 11 #347

Open craigbroadbear opened 2 years ago

craigbroadbear commented 2 years ago

Works fine with node.exe v16.16.0

e.g. the following code hangs on the count call, then aborts without any error after about 10 seconds. import monk from 'monk'

import monk from 'monk';
const db = monk('mongodb://localhost:27017/somedb');
const count = await db.get('somecoll').count();
console.log(count);
staceLIVE commented 1 year ago

monk is now deprecated, switch to mongoose instead

craigbroadbear commented 1 year ago

I got it to work by changing the connecting string to use 127.0.0.1 instead of localhost.