pinojs/thread-stream

registry.unregister is not a function

Closed this issue · 3 comments

I don't use thread-stream directly it is used probably by Pino-pretty when building my Nextjs app, locally I can see these logs.
current version pino-pretty: 7.6.1
thread-stream

Thanks for reporting!

Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that.

I see, the problem is the issue occurs in a mono repo (Nx workspace) where Nextjs apps are built successfully without logging any errors but one of them causes the error logs. So creating a mono repo with Pino-pretty will probably will not regenerate the error logs.

Very likely this is a result of some issues in your build toolchain.