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

build issue #3

Open
vgb0332 opened this issue Oct 9, 2020 · 2 comments
Open

build issue #3

vgb0332 opened this issue Oct 9, 2020 · 2 comments

Comments

@vgb0332
Copy link

vgb0332 commented Oct 9, 2020

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.

@ameedfaridi
Copy link

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

@abdulsalamalmahdi
Copy link

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'),
});

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

3 participants