doapp-ryanp / serverless-plugin-browserify

Speed up your node based lambda's
MIT License
33 stars 4 forks source link

Type Error: Cannot read property 'length' of undefined #14

Open nolde opened 7 years ago

nolde commented 7 years ago

Error happening with a mix of functions containing function level package and some without it.

Type Error ---------------------------------------------

 Cannot read property 'length' of undefined

 For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

Stack Trace --------------------------------------------

TypeError: Cannot read property 'length' of undefined at GlobAll.globNext (C:\git\my-module\node_modules\glob-all\glob-all.js:84:20) at GlobAll.run (C:\git\my-module\node_modules\glob-all\glob-all.js:78:8) at Function.globAll.sync (C:\git\my-module\node_modules\glob-all\glob-all.js:192:41) at BbPromise (C:\git\my-module\node_modules\serverless-plugin-browserify\lib\bundle.js:32:31) at SlsBrowserify.bundle (C:\git\my-module\node_modules\serverless-plugin-browserify\lib\bundle.js:31:12)

nolde commented 7 years ago

This pull request should solve this issue.

gulbinas commented 6 years ago

got same error

Serverless: Writing browserfied bundle to /var/folders/xy/b1189skj16zgcxn2r1s8q8l80000gn/T/addSpecsRecord

  Type Error ---------------------------------------------

  Cannot read property 'length' of undefined

     For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

  Stack Trace --------------------------------------------

TypeError: Cannot read property 'length' of undefined
    at GlobAll.globNext (/Users/aaaa/PyProjects/bc-registry/node_modules/glob-all/glob-all.js:84:20)

versions:

Your Environment Information -----------------------------
     OS:                     darwin
     Node Version:           6.6.0
     Serverless Version:     1.24.1
{
  "name": "registry",
  "version": "0.0.0",
  "license": "MIT",
  "private": true,
  "dependencies": {
    "aws-sdk": "^2.6.12",
    "testrpc": "0.0.1",
    "web3": "^0.19.0"
  },
  "devDependencies": {
    "serverless-plugin-browserify": "^1.1.3"
  }
}
noahsphillips commented 6 years ago

Any progress on this? I am facing the same issue

nolde commented 6 years ago

This project appears to have been abandoned.

I recommend trying the fork I made of it: https://github.com/digitalmaas/serverless-plugin-browserifier