Open lumenwrites opened 1 year ago
we should investigate forcing readable-stream
to use bun's internal version of this package
Newest error using Bun v1.0.7. is:
❯ cat zip.js
import { zip } from 'zip-a-folder'
await zip("./demo", "./demo.zip");
❯ mkdir demo
❯ bun zip.js
SyntaxError: Indirectly exported binding name 'unescape' is not found.
I just ran into this same error with the package form-data
.
I'm trying to use a ReadableStream with a multipart form (which Bun's FormData doesn't support)
bun 1.0.29
28 | source.emit = function() {
29 | delayedStream._handleEmit(arguments);
30 | return realEmit.apply(source, arguments);
31 | };
32 |
33 | source.on('error', function() {});
^
TypeError: source.on is not a function. (In 'source.on("error", function() {
})', 'source.on' is undefined)
What version of Bun is running?
0.5.9
What platform is your computer?
Darwin 20.6.0 x86_64 i386
What steps can reproduce the bug?
Install a
zip-a-folder
package:Use it in a script to zip a folder:
Same issue with archiver package.
What is the expected behavior?
Everything works (like it does with regular node.js)
What do you see instead?
This error:
Additional information
No response