nextjs-sequelize icon indicating copy to clipboard operation
nextjs-sequelize copied to clipboard

build issue

Open vgb0332 opened this issue 5 years ago • 2 comments

Hi, I love your work!. I've been developing with the structure of yours, and now when I try to publish on production level, it's not working great. So I'm builinng one for netlify using netlify-on-next, and it keeps giving me errors about Error: Please install mysql2 package manually after build. I wonder how you fixed it when you were building it.

vgb0332 avatar Oct 09 '20 13:10 vgb0332

Its is also complaining about version of next. It should be 10 or above 10

ameedfaridi avatar Aug 25 '21 21:08 ameedfaridi

I am very late but you can specifythe dialect module: const sequelize = new Sequelize(config.db.database, config.db.user, config.db.password, { host: config.host, dialect:'mysql', dialectModule: require('mysql2'), });

abdulsalamalmahdi avatar Jul 13 '22 16:07 abdulsalamalmahdi