Next.js Discord

Discord Forum

pino logging + nextjs app directory

Unanswered
Barbary Lion posted this in #help-forum
Open in Discord
Barbary LionOP
does anyone have any guidance on how to use a logging library like pino with nextjs app directory? i get an error like this when i try to bundle the application with pino being used:

Error: Cannot find module '/Users/workspace/.next/server/chunks/lib/worker.js'

2 Replies

Barbary LionOP
oh you know what, i was able to narrow down the issue to the specific transport setup i was using.