pinojs / pino-pretty

🌲Basic prettifier for Pino log lines
MIT License
1.27k stars 150 forks source link

parseFactoryOptions is not a function. #526

Closed lynzu closed 3 months ago

lynzu commented 3 months 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 3 months 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.