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
If this worked in a previous version of Logform, which was it?
No response
Minimum Working Example
const{ format }=require('logform');const{ errors }=format;consterrorsFormat=errors({stack: true})constinfo=errorsFormat.transform(newError('Oh no!'));console.log(info);// Error: Oh no!// at repl:1:13// at ContextifyScript.Script.runInThisContext (vm.js:50:33)// at REPLServer.defaultEval (repl.js:240:29)// at bound (domain.js:301:14)// at REPLServer.runBound [as eval] (domain.js:314:12)// at REPLServer.onLine (repl.js:468:10)// at emitOne (events.js:121:20)// at REPLServer.emit (events.js:211:7)// at REPLServer.Interface._onLine (readline.js:282:10)// at REPLServer.Interface._line (readline.js:631:8)
Additional information
No response
🔎 Search Terms
Error Formatter
The text was updated successfully, but these errors were encountered:
The code block in "The problem" section is the error that I am getting when I try to run the code given for the Error Formatter in the README, which I copy and pasted in the "Minimum Working Example" section. Hope that answers your question.
Ran into the same issue.
We ended up having to pass the error object twice (as both "info" and "opts"), i.e. errorsFormat.transform(error, error).
Pretty bizarre, but seems to work:
The problem
I tried using the example shown in the README for the Error Format and I get this error:
Node.js v19.1.0
What version of Logform presents the issue?
2.4.2
What version of Node are you using?
19.1.0
If this worked in a previous version of Logform, which was it?
No response
Minimum Working Example
Additional information
No response
🔎 Search Terms
Error Formatter
The text was updated successfully, but these errors were encountered: