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

Chapter 9 - TypeError: object is not a function #25

Closed
jim-at-jibba opened this issue Apr 11, 2015 · 5 comments
Closed

Chapter 9 - TypeError: object is not a function #25

jim-at-jibba opened this issue Apr 11, 2015 · 5 comments

Comments

@jim-at-jibba
Copy link

Have worked through to this point with no problems. I have checked my code against this repo and it match but I have getting the following error:

TypeError: object is not a function

screen shot 2015-04-11 at 2 58 41 pm

This is refering to this line of code:

var user = new User();

Any help would be much appreciated. Thanks for the great book by the way.

James

@jim-at-jibba
Copy link
Author

Anyone??

@Randore
Copy link

Randore commented Apr 16, 2015

Post your code, not the screen shot. I have not read upto chapt 9 but someone will help if you post the code. And check if there is any issue with case-sensitive.

@chris-sev
Copy link
Member

I just pulled down the code and it seems to be working fine for me:

Double check to make sure that all your Mongoose models are correct. Passing objects around the various Node files with module.exports, can be tricky with the syntax. This is essentially saying that you are trying to call a function or object incorrectly.

And yes, a link to a code repo helps.

@jim-at-jibba
Copy link
Author

OK I will take a look. Thanks for the reply.

@jim-at-jibba
Copy link
Author

Was a typo on my side. Sorry.

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

3 participants