Closed jolo-dev closed 4 months ago
Thanks for reporting. Apparently h3 does not use a connect/express style of middleware, as you can see in https://h3.unjs.io/guide/app#registering-event-handlers.
Therefore, h3 is not supported by its module.
@mcollina thanks for the reply. It also means then that we need to remove that from the documentation, right? https://getpino.io/#/docs/web?id=pino-with-h3
It was added 2 years ago https://github.com/pinojs/pino/pull/1385. Likely something has changed. A PR to remove or update it to a working example would be welcome.
Here is it: https://github.com/pinojs/pino/pull/1968.
It seems that it does not work with h3.
I have reproduced the error, and I followed the instructions from the docs
https://stackblitz.com/edit/github-9quron?file=app.ts