Closed Shawak closed 2 weeks ago
As of https://github.com/oven-sh/bun/pull/14079, now fails with
1 | (function (entry, fetcher)
^
SyntaxError: module '/Users/meghandenny/src/test/node_modules/jimp/dist/esm/index.js' does not have an export named 'default'. Did you mean 'Jimp'?
at asyncFunctionResume (1:11)
at promiseReactionJobWithoutPromiseUnwrapAsyncContext (1:11)
at promiseReactionJob (1:11)
Bun v1.1.30-debug+6aabaa617 (macOS arm64)
changing first line to import { Jimp } from "jimp";
fails with
5 | const response = await fetch(imageLink);
^
ReferenceError: Can't find variable: imageLink
at /Users/meghandenny/src/test/index.js:5:41
Hello @Shawak. Please provide a minimal reproduction using a GitHub repository, Replit, or CodeSandbox. Issues marked with needs repro
will be closed if they have no activity within 3 days.
I have created a minimal reproduction on replit. This does work with node/tsx.
Note how the crash actually happens in pngjs but it's inheriting the Inflate
class from zlib (a node-native module) and doing something weird with underscore-prefixed methods, a notation which should be reserved for internals. zlib should be supported by bun, that is how I understand the claim that it's not optimized though.
excellent, thanks. can confirm this is now fixed by the latest canary and will be available again in 1.1.30
What version of Bun is running?
1.1.27
What platform is your computer?
debian/alpine docker container
What steps can reproduce the bug?
Upgrade to 1.1.27 and use the jimp package, e.g.:
What is the expected behavior?
No response
What do you see instead?
Additional information
No response