pinojs / pino-pretty

🌲Basic prettifier for Pino log lines
MIT License
1.22k stars 147 forks source link

parseFactoryOptions is not a function. #526

Closed lynzu closed 1 month ago

lynzu commented 1 month ago

Im using elysia-logger in bun

code

const app = new Elysia().use( logger({ transport: { target: 'pino-pretty', options: { colorize: true } } }) );

error

TypeError: parseFactoryOptions is not a function. (In 'parseFactoryOptions(Object.assign({}, defaultOptions, options))', 'parseFactoryOptions' is undefined) at prettyFactory (/root/hikari/node_modules/pino-pretty/index.js:113:19) at build (/root/hikari/node_modules/pino-pretty/index.js:134:16) at /root/hikari/node_modules/thread-stream/lib/worker.js:67:23

jsumners commented 1 month ago

Thank you for the report. This project targets the Node.js runtime. If you are encountering issues using Bun, please file issues there as requested by them.