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

Cannot overwrite User model once compiled. #59

Closed
mohamadgh opened this issue Dec 12, 2017 · 3 comments
Closed

Cannot overwrite User model once compiled. #59

mohamadgh opened this issue Dec 12, 2017 · 3 comments
Labels

Comments

@mohamadgh
Copy link

Hey everyone!
i have put all the code step by step in my files and named them exactly the same as the guide
i have mongodb and nodejs installed and running and i'm still getting this error when i try to run app.js
capture

can anyone help me with this please
thanks in advance

@andrewda
Copy link
Owner

You seem to be trying to compile the same Mongoose model twice, or at least two models that have the same name. Look at your models and make sure they are all named differently (probably a copy-paste error and you forgot to change User to Item 😉)

@mohamadgh
Copy link
Author

Thanks for responding o/

@mohamadgh
Copy link
Author

error
can you help me with this one please
i have the config.json,
with a valid api key and a secret string.
config.json and app.js are in the same folder .

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