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 BaseModel cannot be invoked without 'new' #90

Closed
bdombro opened this issue Apr 16, 2019 · 2 comments
Closed

Comments

@bdombro
Copy link
Contributor

bdombro commented Apr 16, 2019

I'm trying to impliment a basic example of migrations at https://github.com/bdombro/warthog-migration-example.

When running ts-node tools/seed.ts, or ts-node-dev --type-check src/index.ts, I get the following error and do not know how to fix.

TypeError: Class constructor BaseModel cannot be invoked without 'new'

I think it's a core issue.

@bdombro
Copy link
Contributor Author

bdombro commented Apr 16, 2019

Nevermind, i figured out the issue was with the tsconfig target. I borrowed the tsconfig from your starter, but realize now it's incompatible with latest

@bdombro bdombro closed this as completed Apr 16, 2019
@goldcaddy77
Copy link
Owner

Ahhh nice catch.

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