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 find module '../models/User' #47

Open
hroft opened this issue Aug 18, 2019 · 2 comments
Open

Cannot find module '../models/User' #47

hroft opened this issue Aug 18, 2019 · 2 comments

Comments

@hroft
Copy link

hroft commented Aug 18, 2019

Error Cannot find module '../models/User'
file /routes/users.js : const User = require('../models/User');
but file /models/user.js

@thtauhid
Copy link

Rename the user.js file to User.js in models folder. This should fix the issue.

Check this pull request: #43

@thtauhid
Copy link

@bradtraversy can you please merge the pull request #43 ?

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