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
It would be nice if the example could be updated to the latest version of Pino and would show the usage of transports. Especially because the issue I'm seeing is that transport modules get removed at build time because webpack thinks they are not being used.
The text was updated successfully, but these errors were encountered:
@quintesse have you found a way to stop transport modules getting removed at build time?
I have not been able to work around this and trying to figure out what other people are doing to get pino working in next.js
error Error [TypeError]: pino__WEBPACK_IMPORTED_MODULE_1___default(...).transport is not a function
at <unknown> (webpack-internal:///(middleware)/./src/lib/logging/log-util.ts:25)
at getLogger (webpack-internal:///(middleware)/./src/lib/logging/log-util.ts:25:72)
at eval (webpack-internal:///(middleware)/./src/middleware.ts:26:80)
It would be nice if the example could be updated to the latest version of Pino and would show the usage of transports. Especially because the issue I'm seeing is that transport modules get removed at build time because webpack thinks they are not being used.
The text was updated successfully, but these errors were encountered: