johnagan/serverless-parcel

Doesn't deploy with Bluebird.JS-dependency

maxkoryukov opened this issue · 0 comments

I have a bluebird.js as a dependency for my project, and when I try to deploy with serverless and this plugin I got this error:

Serverless: bundling parcel entries...
🚨  /project/node_modules/bluebird/js/release/promise.js:34:12: Cannot resolve dependency 'async_hooks'
  32 | };
  33 | var AsyncResource = util.isNode && util.nodeSupportsAsyncResource ?
> 34 |     require("async_hooks").AsyncResource : null;
     |            ^
  35 | var getContextAsyncHooks = function() {
  36 |     return {
  37 |         domain: getDomain(),
 
  Error --------------------------------------------------