-
Notifications
You must be signed in to change notification settings - Fork 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
Schema Inheritance Error (TypeError: Cannot read property '0' of undefined) #56
Comments
Same for me. Upgraded from mongoose 4.9.1 to 4.9.8 |
@xulong3370 have you been able to find a workaround? |
@Climax777 not resolve so far.... |
Still no workaround? |
@mwlvandermaat not that I know of |
Is there a solution for this issue? |
I confirm I am facing a similar issue. For what it's worth the last working Mongoose version I can find with 0.2.2 of mongooses-schema-extend that is working is 4.9.7 |
I got the same error. My mistake was: I was initializing the child's model before father's model. Please, double check which one is load first. |
Nope. It's still not working. I'm sure that parent model is initialized before children one. |
Still not fixed :( |
almost one year later still not resolved :'( |
When I try schema inheritance :
I get the following error:
It looks like the following code cause the error:
The text was updated successfully, but these errors were encountered: