-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
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
Cannot call a class constructor without |new| #5997
Comments
eh... had a look at what
class Wrapped extends AsyncResource {
constructor(...args) { ... }
}
// and then call it as such:
new Wrapped(...) Feels like a EDIT: i saw that AsyncResource.bind was a thing apparently... however it's deprecated and should not be used anymore. |
@jimmywarting thanks I'll pass it on |
Any workaround for this atm? |
Fixed by @paperdave in #6095 |
still having this issue EDIT: nvm hadn't upgraded bun since before #6095 |
Still having this issue too..
|
What version of Bun is running?
1.0.3+25e69c71e70ac8a0a88f9cf15b4057bd7b2a633a
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
Run
bun init
and add following code to index.ts.Run
bun install @inquirer/prompts
then run ```bun run index.ts````You will get this error. It works when setting up the project as a node app
What is the expected behavior?
Open a cli prompt and enable input
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: