firstandthird / hapi-agenda

5 stars 3 forks source link

Cannot read property 'name' of undefined #24

Closed adonisv79 closed 8 years ago

adonisv79 commented 8 years ago

this occurs in mongoskin version included node_modules\mongoskin\lib\utils.js line 33

  var skinClassName = 'Skin' + NativeClass.name; <----here
  function SkinClass() {
    var args = __slice.call(arguments);
    this._construct_args = args;
    if(useNativeConstructor && arguments.length > 0) {
      args.unshift(null);
adonisv79 commented 8 years ago

Ugh nvm, it seems to have been caused by doing "npm i" on the node 6.7 version where our hapi system was created during node 4.3.2