-
Notifications
You must be signed in to change notification settings - Fork 127
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
TypeError: Promise.withResolvers is not a function #76
Comments
@adnanmirza1 can you please add step to reproduce this bug reliably? |
I'm now experiencing this. This error occurs because Promise.withResolvers() is a relatively new feature that isn't available in Node.js v20.18.0. We have a few options to fix this:
I think we should go with option 1. |
Tested this PR and it works - do you want to give it a shot @adnanmirza1 ? |
thanks @sirkitree, I just cloned it followed the steps from readme, installed the packages using npm i, (node version 20.13.1). then after some time I simply updated the node version to 22.10.0 using nvm and the issue was solved even without the polyfill. |
From an off comment in #47 (comment) from https://github.com/adnanmirza1
Describe the bug
Hello @sirkitree, hope you'll be fine. Sorry for being off the topic but I need help setting up this project on my linux machine, I added env's, node v 20.13.1, runned npm i which was successful, and now after node --loader ts-node/esm src/index.ts
I'm seeing below error.
The text was updated successfully, but these errors were encountered: