You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 | const zlib = require("zlib");
2 |
3 | console.log(new zlib.BrotliDecompress());
^
TypeError: undefined is not a constructor (evaluating 'new zlib.BrotliDecompress')
at /home/gungun974/test.js:3:12
at globalThis (/home/gungun974/test.js:3:39)
Additional information
I was trying to install Sharp with Bun in the Bun official Dockerfile and I see post install was missing.
So my reflex is just to run the install sharp binary script manually and is here I found that Bun didn't support zlib.BrotliDecompress() like node does.
personally I will find an other way for my dockerfile to install sharp binary but but I still had to report this bug.
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.0.2+37edd5a6e389265738e89265bcbdf2999cb81a49
What platform is your computer?
Linux 6.4.15-200.fc38.x86_64 x86_64 unknown (Fedora 38)
What steps can reproduce the bug?
Create a file like
test.js
Write this :
What is the expected behavior?
The expected behavior with Node v18.16.0 is that :
What do you see instead?
The unexpected behavior with bun v1.0.2 is that :
Additional information
I was trying to install Sharp with Bun in the Bun official Dockerfile and I see post install was missing.
So my reflex is just to run the install sharp binary script manually and is here I found that Bun didn't support
zlib.BrotliDecompress()
like node does.personally I will find an other way for my dockerfile to install sharp binary but but I still had to report this bug.
The text was updated successfully, but these errors were encountered: