Automattic / Automattic/monk

monk not working with node v18.8 on windows 11

Open
#347 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
180
PR merge metrics
No merged PRs in 30d

Description

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);
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the provided Monk and MongoDB count example on Windows 11 with node.exe v16.16.0 and v18.8, then compare the behavior and available error output. Done means the count call completes or reports a clear error under Node 18.8, with the result verified against the working Node 16 behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb, node.js
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.