Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"body-parser": "2.0.1",
"bytes": "3.1.2",
"chalkercli": "https://github.com/TurtIeSocks/chalkercli.git",
"chokidar": "^3.5.3",
"chokidar": "^5.0.0",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update watcher usage for ESM-only chokidar 5

Bumping chokidar to 5.0.0 makes the package ESM-only and requires Node ≥20.19, but our watcher still loads it via require in server/src/services/watcher.js under an engines declaration of Node ≥18. Running yarn dev/node server/src/index.js on the currently advertised Node 18 (or any CJS entrypoint) will throw ERR_REQUIRE_ESM as soon as the watcher is created, preventing the backend from starting. Please either keep chokidar v3 or convert the watcher/runtime to an ESM-compatible Node version.

Useful? React with 👍 / 👎.

"compression": "^1.7.4",
"cors": "^2.8.5",
"date-fns": "^2.30.0",
Expand Down
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3218,6 +3218,13 @@ chokidar@^3.5.1, chokidar@^3.5.2, chokidar@^3.5.3:
optionalDependencies:
fsevents "~2.3.2"

chokidar@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-5.0.0.tgz#949c126a9238a80792be9a0265934f098af369a5"
integrity sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==
dependencies:
readdirp "^5.0.0"

chownr@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece"
Expand Down Expand Up @@ -8400,6 +8407,11 @@ readable-stream@^3.0.2, readable-stream@^3.4.0, readable-stream@^3.6.0:
string_decoder "^1.1.1"
util-deprecate "^1.0.1"

readdirp@^5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-5.0.0.tgz#fbf1f71a727891d685bb1786f9ba74084f6e2f91"
integrity sha512-9u/XQ1pvrQtYyMpZe7DXKv2p5CNvyVwzUB6uhLAnQwHMSgKMBR62lc7AHljaeteeHXn11XTAaLLUVZYVZyuRBQ==

readdirp@~3.6.0:
version "3.6.0"
resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7"
Expand Down
Loading