This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 214
TypeError: Promise.promisifyAll is not a function #134
Comments
hypernova used bluebird, but doesn’t shim anything; promisifyAll is a bluebird method. Perhaps you have code that is relying on bluebird being the global Promise? |
I looked into it a bit more. I have been able to isolate the side effects with the following code:
which outputs the following:
I'm going to dig into For the sake of more information:
|
It seems that What's the intention of that file? I'll open a PR in case we want some changes. |
ah, it's to ensure that the global promise lacks Bluebird-specific methods. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Environment:
I'm starting to set up hypernova in a Rails + Webpack repository.
By importing the hypernova server module, it seems my globals are polluted.
The only difference in my script is the following line:
which produces the following error trace:
While the error is not in the hypernova source, it is being caused by a hypernova module -- since it works without processing the module.
I was wondering whether this is true, whether this is fixable, whether this is intended, etc. I would be happy to make a PR if it is an acceptable improvement: removing dependencies on the global Promise object.
The text was updated successfully, but these errors were encountered: