-
Notifications
You must be signed in to change notification settings - Fork 166
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
Got an error in 1.4.11 - "Cannot read property 'name' of undefined" #153
Comments
+1
|
still getting this as well |
Can you clarify what version of the mongodb npm module you're using? |
we're using whatever |
Having the same issue through monk. |
I am having the same issue as well, through monk too. |
Same issue here! |
+1 Same issue here width monk : "dependencies": { and app dependencies : "dependencies": { |
@sqone I got monk to work by changing the dependency to version "mongoskin": "1.3.20". Monk by default will install 1.4.11 which seems to be broken. The previous version of mongoskin (1.3.20) seems to be fine. |
@kimeshan can you clarify which dependencies you changed or better yet post your dependencies in the comments. Thank you! |
@iposton I changed the mongoskin version in my monk dependencies: This is in my package.json inside node_modules/monk: Alternatively, just navigate to node_modules/monk in your shell, then do: This will automatically change your mongoskin version and update the package.json. This gets Monk to work. Monk requires Mongoskin and it seems that the latest push of Mongoskin is broken due to the NativeClass error here. So changing to 1.3.20 will tell npm to pull the previous working version of Mongoskin, which Monk can work with. Hope that helps. |
@kimeshan I see. I changed the mongoskin to ^1.3.20 then did npm install but still getting same error. Is there a command to get npm to see the new change in monk? |
@iposton I was having some problems with that too. I did the uninstall and then install, and that worked. Changing the package.json and then doing npm install didn't play nice when I tried it. So uninstall mongoskin when you're inside node_modules/monk, then install by specifying the version with @. npm uninstall mongoskin --save |
Yes! This solved my issue! Great work @kimeshan no more error and the Server is now running on port 3000 |
The issue is because mongoskin installs newest mongodb driver
And the newest released mongodb drive is So limiting dependency to
should fix the issue for now |
1.4.13 uses |
Install on heroku broken as per this discussion kissjs/node-mongoskin#153
- avoids errors with mongoskin. See: Automattic/monk#91 kissjs/node-mongoskin#153
Got this error as well, did research and now I have a new, different error in node-gyp: Fatal error C1083: |
@javlc not related to this issue. Also, mongoskin should work just fine even if the C++ bson build failed. |
@kimeshan Thank you so much! Installing mongoskin version 1.3.20 helped me to solve this problem!! |
1 similar comment
@kimeshan Thank you so much! Installing mongoskin version 1.3.20 helped me to solve this problem!! |
Downgrading is not really a great long term solution though. I'm new to Monk, is it outdated? |
@jaegerbombb yeah kind of like this...don`t forget that mongoskin version works with mongodb of version 1.4.x! that also helped me. |
@sylvainkossi |
What's the status of this issue? has it been fixed to work with latest version of mongo? |
I seem to be getting this error still. |
Getting the same issue. @kimeshan solution worked for me. |
Actually I don`t know does this method works...I just leaved this warning...The one thing which I did, the latest version of mongoskin is 1.0.1, so what you need it is just download mongodb of version 1.4.x because mongoskin version 1.0.1 only compatible with this mongodb version |
I solved my issue with @kimeshan solution |
The text was updated successfully, but these errors were encountered: