consola icon indicating copy to clipboard operation
consola copied to clipboard

logObj message is empty in build process during errors

Open vaschindler opened this issue 4 years ago • 1 comments

Hi, in my nuxt.config.js I am setting consola.setReporter to define my own Reporter and format the log messages to JSON. This works fine. But when executing nuxt build and there are errors on build, no error messages are shown. I am already combining the logObj args to handle the messages, but on build errors they won't show up.

{"level":"error","message":{},"args":[],"dd":{"service":"test"}}

When I comment out the consola part in nuxt.config.js a fatal box with error message is normally shown.

Is this possible to pipe those build errors to the consola reporter?

vaschindler avatar May 27 '21 09:05 vaschindler

same problem.

gplusdotgr avatar Feb 11 '22 16:02 gplusdotgr

Hi. Please provide a reproduction 🙏🏼

pi0 avatar Apr 10 '23 23:04 pi0