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

const model = require(path.join(__dirname, file)).default( ^ TypeError: require(...).default is not a function #1381

Closed
DasoTD opened this issue Sep 14, 2023 · 0 comments

Comments

@DasoTD
Copy link

DasoTD commented Sep 14, 2023

What you are doing?

// code here

What do you expect to happen?

I wanted Foo!

What is actually happening?

I have got const model = require(path.join(__dirname, file)).default( ^ TypeError: require(...).default is not a function error while using "sequelize": "^6.33.0",
But the output was bar!

Output, either JSON or SQL

Dialect: mysql / postgres / sqlite / mssql / any
Database version: XXX
Sequelize CLI version: XXX
Sequelize version: XXX

@DasoTD DasoTD closed this as completed Sep 14, 2023
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

1 participant