We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.5.0
Linux 6.1.4-arch1-1 x86_64 unknown
When trying to use "require" that was assigned to a constant an error is thrown TypeError: undefined is not an object
TypeError: undefined is not an object
const requireConst = require console.log("requireConst", requireConst) const fs = requireConst("fs") // <--- error on load console.log(fs)
"fs" module is loaded without any errors
An error is thrown on module load
requireConst [Function: require] 1 | const requireConst = require 2 | console.log("requireConst", requireConst) 3 | const fs = requireConst("fs") ^ TypeError: undefined is not an object
The error is thrown with any modules
The text was updated successfully, but these errors were encountered:
7012d2f
Add a test for #1831
311185f
No branches or pull requests
What version of Bun is running?
0.5.0
What platform is your computer?
Linux 6.1.4-arch1-1 x86_64 unknown
What steps can reproduce the bug?
When trying to use "require" that was assigned to a constant an error is thrown
TypeError: undefined is not an object
What is the expected behavior?
"fs" module is loaded without any errors
What do you see instead?
An error is thrown on module load
Additional information
The error is thrown with any modules
The text was updated successfully, but these errors were encountered: