Skip to content

Cloned the Repository: Ran npm intsall in chapter 17: Still doesn't work #46

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

Open
themodernturing opened this issue Oct 9, 2016 · 1 comment

Comments

@themodernturing
Copy link

I figured out the issue, which is with mongoose new versions i.e >4. If you use mongoose > 4 and use the new .then command in the controllers, its doesn't work. I had to use an old version of mongoose i.e. "mongoose": "~3.8.19", and used . success instead of .then in the controllers, and it worked fine.

Here is the live version on Heroku.

https://user-crm-420.herokuapp.com/

I still would like to know why new versions of mongoose are not working with .then, any explanations.

@miguelleite
Copy link

Hello @arcticmonkey, check if this helps:

http://stackoverflow.com/a/38153706

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants