Open 826327700 opened 3 months ago
Looks like for some reason, Bun is resolving the lib/psd.coffee
instead of index.js
in the psd package.
❯ bun psd.ts
Module {
__esModule: true,
default: "/Users/ashcon/Desktop/code/sandbox/node_modules/psd/lib/psd.coffee",
}
1 | import PSD from "psd";
2 | console.log(PSD);
3 | var psd = PSD.fromFile("a.psd");
^
TypeError: PSD.fromFile is not a function. (In 'PSD.fromFile("a.psd")', 'PSD.fromFile' is undefined)
at /Users/ashcon/Desktop/code/sandbox/psd.ts:3:11
What version of Bun is running?
1.0.33
What platform is your computer?
Windows 11
What steps can reproduce the bug?
What is the expected behavior?
I hope it work
What do you see instead?
TypeError: undefined is not a function (near '...PSD.fromFile...')
Additional information
No response