sequelize / sequelize-auto

Automatically generate bare sequelize models from your database.
2.88k stars 521 forks source link

How to use imports and exports #662

Closed riadfrancoq closed 4 months ago

riadfrancoq commented 4 months ago

npx sequelize-auto -o "./src/models" -l es6 -d pruebaNode -h localhost -u root -p 3306 -x 123456 -e mysql --mjs I am trying to use imports and exports but when i put this command it uses require

riadfrancoq commented 4 months ago

also i am using it without the npx

riadfrancoq commented 4 months ago

I just fix it xd, but i dont know why in the other occasions it doesn't work, who knows ?