Open JP-Ellis opened 2 weeks ago
Indeed, Dirent.path
became read-only in node 23: https://nodejs.org/api/fs.html#direntpath.
But Dirent.path
is heavily used by https://github.com/folder/readdir, which was a dependency of connect-gzip-static
. Since https://github.com/pirxpilot/connect-gzip-static/commit/f227d83c762e8d026277235dce92b6130cd314b2, connect-gzip-static
doesn't depend on @folder/readdir
anymore. So upgrading connect-gzip-static
to 4.0.0
should fix the problem.
Thanks for the quick fix! Looking forward to the next release :)
What happened?
The frontend fails to load on NodeJS 23, resulting in the whole process crashing
What did you expect to happen?
For the front end to start
How to reproduce it (minimal and precise)
Run Zigbee2MQTT on Node.JS, with front end enabled.
Zigbee2MQTT version
1.40.2-1 (Arch Linux)
Adapter firmware version
N/A
Adapter
N/A
Setup
Arch Linux
Debug log