pinojs / sonic-boom

Extremely fast utf8 only stream implementation
MIT License
261 stars 41 forks source link

compilation error on cb #197

Open tedyu opened 3 months ago

tedyu commented 3 months ago

Our node.js microservice is using sonic-boom@3.8.1

Currently I am facing this compilation error:

/opt/app/node_modules/sonic-boom/index.js:393
    cb?.()
       ^

SyntaxError: Invalid or unexpected token
    at Object.replacementCompile (/opt/app/node_modules/append-transform/index.js:60:13)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)

Initially I thought this was due to low node.js version. But node.js 18 is used.

Any hint is welcome.