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 model cannot be invoked without 'new' after uninstalling babel #9280
Comments
Hey @ekkatharisi! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
Which lines doe throw that error? |
thank you @nicolo-ribaudo for responding me, so the problem that i install BABEL in my laptop (and other pc), after that the console shoots this error in this line |
Maybe you can find a solution at sequelize/sequelize#7840. Another possible solution is to transpile the sequelize module to es5. |
but the sequelize modules are transpiled to es5, (have you see any es6 expression ) |
I'm experiencing the same issue although as far as I'm aware it only occurs when I AM using babel (if I remove babel then none of my imports work so I can't run my app to check). It's also occurring for me at sequelize.import() edit: nope, it was also not working without babel. I believe it's an issue with sequelize. I switched to the sequelize-typescript package so I don't need to use sequelize.import() anymore and now my app works fine. |
If this was a Babel bug, it has been fixed by #8656 |
Bug Report
Current Behavior
i have a trouble using babel , and when i unistalling it to use just the ES5 , it shoots this error :
TypeError: Class constructor model cannot be invoked without 'new'
this is my code :
Input Code
please what i should do now ??
Environment
cli
]The text was updated successfully, but these errors were encountered: