What version of Bun is running?
1.3.11-canary.1+9e93bfa1b
What platform is your computer?
Linux 5.10.0-12-amd64 x86_64 x86_64
What steps can reproduce the bug?
Hi,
I would like to report a behavior in Bun that can be reproduced using the below PoC:
npm install jsdoc --prefix .
bun run node_modules/jsdoc/jsdoc.js
What is the expected behavior?
Works in Node without error
root@KContainer:~/20975# node node_modules/jsdoc/jsdoc.js
There are no input files to process.
What do you see instead?
jsdoc dependency requizzle throws error
root@KContainer:~/20975# bun run node_modules/jsdoc/jsdoc.js
97 | }
98 |
99 | // update the wrapper before we load the target module
100 | replaceWrapper(wrapper);
101 |
102 | targetModule.load(targetModule.id);
^
TypeError: targetModule.load is not a function. (In 'targetModule.load(targetModule.id)', 'targetModule.load' is undefined)
at load (/home/c01kele/20975/node_modules/requizzle/lib/loader.js:102:16)
at requizzle (/home/c01kele/20975/node_modules/requizzle/lib/requizzle.js:96:27)
at <anonymous> (/home/c01kele/20975/node_modules/requizzle/index.js:22:21)
at <anonymous> (/home/c01kele/20975/node_modules/jsdoc/jsdoc.js:31:5)
at <anonymous> (/home/c01kele/20975/node_modules/jsdoc/jsdoc.js:34:36)
Bun v1.3.11-canary.1+9e93bfa1b (Linux x64)
Additional information
This was previously reported in #20975
This could be a regression issue
What version of Bun is running?
1.3.11-canary.1+9e93bfa1b
What platform is your computer?
Linux 5.10.0-12-amd64 x86_64 x86_64
What steps can reproduce the bug?
Hi,
I would like to report a behavior in Bun that can be reproduced using the below PoC:
npm install jsdoc --prefix .bun run node_modules/jsdoc/jsdoc.jsWhat is the expected behavior?
Works in Node without error
What do you see instead?
jsdoc dependency requizzle throws error
Additional information
This was previously reported in #20975
This could be a regression issue