Does anybody know how we can use sequelize-CLI with ESM module type projects
It is the first time I am building a full-stack app using MERN stack. I used MySQL as my database via sequelize package and sequelize-cli. I developed basic features of projects without sequelize-cli, before this I was just defining my models using sequelize.define(‘modelname’,{properties}) and sequelize.sync was doing everything then my models stoped being synced in database and found about sequelize-cli and started using it, It been 3 days since I am using it and my project is getting worse, sequelize-cli generates commonjs type files and i am using ESM import/export and type:module in my package.json.