pino icon indicating copy to clipboard operation
pino copied to clipboard

Symbols is undefined in Cloudflare Workers

Open maou-shonen opened this issue 1 year ago • 4 comments

Hi, I encountered an error in Cloudflare Workers. After looking into it, I found that it was caused by pino.symbols always being undefined.

import pino from "pino"

export default {
  async fetch(request, env, ctx): Promise<Response> {
    console.log("pino.symbols", pino.symbols) // got undefined

    return new Response("Hello World!")
  },
} satisfies ExportedHandler

minimal reproduction

maou-shonen avatar Nov 07 '24 19:11 maou-shonen

Please provide a reproduction in JavaScript.

jsumners avatar Nov 07 '24 19:11 jsumners

Please provide a reproduction in JavaScript.

Do you mean that I should not use TypeScript?

maou-shonen avatar Nov 07 '24 20:11 maou-shonen

I mean that I want to see the issue exhibited in JavaScript.

jsumners avatar Nov 07 '24 20:11 jsumners

We do not official support cloudflare workers. If things are missing/problematic, you should be reporting to them,

mcollina avatar Nov 08 '24 10:11 mcollina