bluebird icon indicating copy to clipboard operation
bluebird copied to clipboard

can't resolve async_hooks

Open manotoor opened this issue 4 years ago • 2 comments

(This issue tracker is only for bug reports or feature requests, if this is neither, please choose appropriate channel from http://bluebirdjs.com/docs/support.html)

Please answer the questions the best you can:

  1. What version of bluebird is the issue happening on? ^3.5.0
  2. What platform and version? (For example Node.js 0.12 or Google Chrome 32) node v8.16.1 and v8.12.1 (tested on both)
  3. Did this issue happen with earlier version of bluebird? no (Write description of your issue here, stack traces from errors and code that reproduces the issue are helpful) seeing this issue with ^3.5.0 can't resolve 'async_hooks' in /node_modules/bluebird/js/release node_modules/bluebird/js/release/promise.js 34:4-26

seems like switching to version 3.5.0 fixed it

manotoor avatar Oct 07 '19 20:10 manotoor

cant repro

petkaantonov avatar Oct 15 '19 08:10 petkaantonov

This happens when Node < 8 is used, log process.version you will see it's not actually Node 8 and you have something else going on

benjamingr avatar Oct 15 '19 09:10 benjamingr

image

How to fix?

ultrakeypoint avatar Oct 04 '22 04:10 ultrakeypoint

@ultrakeypoint if you're using Deno (just going by the icon) you need to use the browser version of bluebird or ideally use native promises instead.

benjamingr avatar Oct 04 '22 09:10 benjamingr