Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeClass.name error / could remove dep on mongoskin? #12

Open
dcsan opened this issue Feb 18, 2016 · 3 comments
Open

NativeClass.name error / could remove dep on mongoskin? #12

dcsan opened this issue Feb 18, 2016 · 3 comments
Labels

Comments

@dcsan
Copy link

dcsan commented Feb 18, 2016

I hit this error on trying to run your example

/Users/dc/dev/rikai/chateditor/botkit-express/node_modules/mongoskin/lib/utils.js:33
  var skinClassName = 'Skin' + NativeClass.name;
                                          ^

TypeError: Cannot read property 'name' of undefined
    at makeSkinClass (/Users/dc/dev/rikai/chateditor/botkit-express/node_modules/mongoskin/lib/utils.js:33:43)
    at Object.<anonymous> (/Users/dc/dev/rikai/chateditor/botkit-express/node_modules/mongoskin/lib/grid.js:6:35)

robe uses monk which depends on mongoskin, which is not maintained and has some issues?
kissjs/node-mongoskin#153

https://github.com/Automattic/monk/graphs/contributors

Since the native mongo driver now has promises, could robe be written to remove this house of cards of dependencies?

seems i now need to dig deep into the dependency chain to downgrade a dep... which seems fragile if it will even work at all.

@dcsan
Copy link
Author

dcsan commented Feb 18, 2016

node v5.6

npm list robe
botkit-express-demo@0.1.0 /Users/dc/dev/rikai/chateditor/botkit-express
└─┬ robe@0.12.0 
  └── UNMET PEER DEPENDENCY mongodb@1.4.40

npm ERR! peer dep missing: mongodb@~1.4, required by mongoskin@1.4.13

so i uninstalled and reinstalled, but still the same problem

  botkit-express git:(master) ✗ npm install robe

> kerberos@0.0.11 install /Users/dc/dev/rikai/chateditor/botkit-express/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/kerberos/lib/kerberos.o

> kerberos@0.0.3 install /Users/dc/dev/rikai/chateditor/botkit-express/node_modules/robe/node_modules/monk/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/kerberos/lib/kerberos.o

> bson@0.2.8 install /Users/dc/dev/rikai/chateditor/botkit-express/node_modules/robe/node_modules/monk/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bson/ext/bson.o

> bson@0.2.22 install /Users/dc/dev/rikai/chateditor/botkit-express/node_modules/robe/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

  CXX(target) Release/obj.target/bson/ext/bson.o
botkit-express-demo@0.1.0 /Users/dc/dev/rikai/chateditor/botkit-express
├─┬ babel-cli@6.5.1
│ ├─┬ babel-core@6.5.2
│ │ ├─┬ babel-generator@6.5.0
│ │ │ └── lodash@3.10.1 
│ │ ├─┬ babel-template@6.5.0
│ │ │ └── lodash@3.10.1 
│ │ ├─┬ babel-traverse@6.5.0
│ │ │ └── lodash@3.10.1 
│ │ ├─┬ babel-types@6.5.2
│ │ │ └── lodash@3.10.1 
│ │ └── lodash@3.10.1 
│ ├─┬ babel-register@6.5.2
│ │ └── lodash@3.10.1 
│ ├─┬ chokidar@1.4.2
│ │ ├─┬ fsevents@1.0.7
│ │ │ └─┬ node-pre-gyp@0.6.19
│ │ │   └─┬ tar-pack@3.1.2
│ │ │     └── readable-stream@2.0.5 
│ │ └─┬ readdirp@2.0.0
│ │   └── readable-stream@2.0.5 
│ └── lodash@3.10.1 
├─┬ monk@1.0.1
│ └─┬ mongoskin@1.3.20
│   └─┬ mongodb@1.3.20
│     └── kerberos@0.0.3 
├─┬ node-inspector@0.12.6 
│ ├─┬ biased-opener@0.2.7
│ │ └─┬ browser-launcher2@0.4.6
│ │   └─┬ plist@1.2.0
│ │     └─┬ xmlbuilder@4.0.0
│ │       └── lodash@3.10.1 
│ └─┬ v8-debug@0.7.1
│   └─┬ node-pre-gyp@0.6.21
│     ├─┬ npmlog@2.0.2
│     │ └─┬ are-we-there-yet@1.0.6
│     │   └── readable-stream@2.0.5 
│     ├─┬ request@2.69.0
│     │ └─┬ bl@1.0.2
│     │   └── readable-stream@2.0.5 
│     └─┬ tar-pack@3.1.3
│       └── readable-stream@2.0.5 
├─┬ request@2.69.0
│ └─┬ bl@1.0.1
│   └── readable-stream@2.0.5 
└─┬ robe@0.12.0 
  ├── bluebird@2.10.2 
  ├── eventemitter2@0.4.14 
  ├── generator-compose@0.1.0 
  ├── lodash@3.10.1 
  ├── lodash-deep@1.6.0 
  ├─┬ UNMET PEER DEPENDENCY mongodb@1.4.40
  │ ├─┬ bson@0.2.22 
  │ │ └── nan@1.8.4 
  │ ├─┬ kerberos@0.0.11 
  │ │ └── nan@1.8.4 
  │ └── readable-stream@2.0.5 
  ├── mongoskin@1.4.13 
  ├─┬ monk@0.9.1 
  │ └─┬ mongoskin@1.4.4 
  │   └─┬ mongodb@1.4.4 
  │     ├─┬ bson@0.2.8 
  │     │ └── nan@1.0.0 
  │     └── kerberos@0.0.3 
  └── simple-mongo-schema@0.8.1 

npm WARN mongoskin@1.4.13 requires a peer of mongodb@~1.4 but none was installed.
npm WARN botkit-express-demo@0.1.0 No repository field.
➜  botkit-express git:(master) ✗ npm list robe
botkit-express-demo@0.1.0 /Users/dc/dev/rikai/chateditor/botkit-express
└─┬ robe@0.12.0 
  └── UNMET PEER DEPENDENCY mongodb@1.4.40

npm ERR! peer dep missing: mongodb@~1.4, required by mongoskin@1.4.13

@dcsan
Copy link
Author

dcsan commented Feb 18, 2016

ok manually installing per this issue

Automattic/monk#114

➜  botkit-express git:(master) ✗ npm list mongodb
botkit-express-demo@0.1.0 /Users/dc/dev/rikai/chateditor/botkit-express
├── mongodb@1.4.40 
├─┬ mongorito@1.4.6
│ └── mongodb@2.1.7 
├─┬ monk@1.0.1
│ └─┬ mongoskin@1.3.20
│   └── mongodb@1.3.20 
└─┬ robe@0.12.0
  ├── mongodb@1.4.40 
  └─┬ monk@0.9.1
    └─┬ mongoskin@1.4.4
      └── mongodb@1.4.4 

➜  botkit-express git:(master) ✗ npm list robe   
botkit-express-demo@0.1.0 /Users/dc/dev/rikai/chateditor/botkit-express
└── robe@0.12.0 

@hiddentao
Copy link
Owner

Glad that worked out for you. - yeah, at some point it would be good to rewrite Robe accordingly.

@hiddentao hiddentao added the bug label Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants