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

TypeError: Class constructor MongoTenantModel cannot be invoked without 'new' since mongoose@4.8.1 #5

Closed
alrik opened this issue Feb 6, 2017 · 5 comments
Assignees

Comments

@alrik
Copy link
Member

alrik commented Feb 6, 2017

see Automattic/mongoose#4947

@alrik alrik changed the title TypeError: Class constructor MongoTenantModel cannot be invoked without 'new' TypeError: Class constructor MongoTenantModel cannot be invoked without 'new' since mongoose@4.8.1 Feb 6, 2017
@alrik
Copy link
Member Author

alrik commented Feb 6, 2017

@benhjames until it's clarified whether its a mongoose regression bug or an api change, mongo-tenant has to live with, I'll pin the mongoose peer dependency to 4.7.x

alrik added a commit that referenced this issue Feb 6, 2017
alrik added a commit that referenced this issue Feb 6, 2017
@bensalilijames
Copy link

Great, cheers.

@alrik alrik self-assigned this Feb 6, 2017
alrik added a commit that referenced this issue Feb 6, 2017
@alrik
Copy link
Member Author

alrik commented Feb 6, 2017

I released version 1.0.3. For now mongo-tenant is compatible with mongoose >=4.3.0, <=4.7.x.

@alrik alrik closed this as completed Feb 6, 2017
@bensalilijames
Copy link

I believe this is fixed now in mongoose 4.8.3!

@alrik
Copy link
Member Author

alrik commented Feb 20, 2017

@benhjames I'll publish a new version tomorrow.

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