question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with mongoskin

See original GitHub issue
  var skinClassName = 'Skin' + NativeClass.name;
                                          ^

TypeError: Cannot read property 'name' of undefined
    at makeSkinClass (/Users/tacmarketing/WebstormProjects/tcomb-db/node_modules/monk/node_modules/mongoskin/lib/utils.js:33:43)
    at Object.<anonymous> (/Users/tacmarketing/WebstormProjects/tcomb-db/node_modules/monk/node_modules/mongoskin/lib/admin.js:18:37)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

Currently can’t build monk and i’m not sure mongoskin will receive an update.

Are there any plans to remove mongoskin as a dependency?

Edit:

A temporary solution to fix this module would be to add mongodb@1.4.4 as a dependency as the issue stems from the fact that mongoskin switched (accidentially) to a peer dependency for mongodb@2.X which it does not support.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:27

github_iconTop GitHub Comments

6reactions
jeremywadsackcommented, Jan 17, 2016

Ran into the same issue. Was able to fix with:

npm uninstall mongodb --save
npm install mongodb@1.4 --save

Which is what @DylanPiercey stated at the top.

I’m also concerned that this dependency issue has been open for 10 months.

0reactions
schackercommented, May 22, 2017

666,thx

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with mongoskin · Issue #91 · Automattic/monk - GitHub
A temporary solution to fix this module would be to add mongodb@1.4.4 as a dependency as the issue stems from the fact that...
Read more >
mongoskin and mongoose dependency error - Stack Overflow
I solved this issue by installing older versions of MongoDb. Follow these steps: npm uninsatll mongodb --save.
Read more >
kissjs/node-mongoskin - Gitter
i have a problem with mongoskin: i want to run browserify and get "Error: Cannot find module './lib-cov/' from '<project_path>/node_modules/mongoskin'"
Read more >
mongoskin - npm
Start using mongoskin in your project by running `npm i mongoskin`. There are 119 other projects in the npm registry using mongoskin.
Read more >
"Cannot read property 'name' of undefined"-mongodb
This seems to be a problem with mongoskin module and not your code. Check the versions of your dependencies by running npm version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found