You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
When I run fs.readFile(somePath, { encoding: "utf8" }, (err, content) => {}), which (I think) works with the native Node fs module, it throws an error TypeError: Unknown encoding: [object Object]. It seems to work if I just pass "utf8", rather than an object.
The text was updated successfully, but these errors were encountered:
When I run
fs.readFile(somePath, { encoding: "utf8" }, (err, content) => {})
, which (I think) works with the native Nodefs
module, it throws an errorTypeError: Unknown encoding: [object Object]
. It seems to work if I just pass "utf8", rather than an object.The text was updated successfully, but these errors were encountered: