-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Documented installation method doesn't work with Node 18 #1702
Comments
We fixed native stack traces in Node.js with async functions and native promises a while ago (circa 2018) - can you outline what doesn't work?
I can't extract the tar.gz file here (on mobile) can you upload a gist or a gh repo? |
I added Promises around Node's
The error itself is pretty straightforward, but stack trace doesn't show where in my code does this call originate. After Googling, I learned that Bluebird is supposedly capable of longer stack traces and I want to check if it would do the job here.
Sure thing: https://gist.github.com/hbielenia/6dc79ded33f461dcf971002cd077b554 |
Node version: 18.14.0
Bluebird version: 3.7.2
Hello, I would like to use Bluebird instead of native Promises because native stack traces give me no clue where to look for errors that are happening. I tried installation method described right there on getting started page:
import * as Promise from 'bluebird';
This works fine. Unfortunately, trying to call
Promise.config()
results in an error:TypeError: Promise.config is not a function
This seems to indicate that the native
Promise
doesn't get overwritten. However, googling doesn't turn many results on that, which probably means that this isn't a widely encountered problem but only something wrong with my setup.I'm enclosing an example source code file. Executing it with
node bluebirdtest.js
give me the aforementioned error.bluebirdtest.tar.gz
The text was updated successfully, but these errors were encountered: