-
Notifications
You must be signed in to change notification settings - Fork 229
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
Comments
Anyone?? |
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. |
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. |
OK I will take a look. Thanks for the reply. |
Was a typo on my side. Sorry. |
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
This is refering to this line of code:
Any help would be much appreciated. Thanks for the great book by the way.
James
The text was updated successfully, but these errors were encountered: