Next.js Discord

Discord Forum

Please install mysql2 manually

Unanswered
Forest yellowjacket posted this in #help-forum
Open in Discord
Forest yellowjacketOP
Im trying to use sequlize module but it giving error

10 Replies

Forest yellowjacketOP
I did wrote npm i mysql2 etc.
To console its saying db connnected
@@ts-ignore install the package
Forest yellowjacketOP
but in browser its givin error
you can't use this client side
Forest yellowjacketOP
Im using like that
a npm module using sequlize
First image is config.js second is login.js at pages folder
I'm sorry if I explained it badly
@Forest yellowjacket Im using like that
1. You are importing the sequelize which runs it client side hence the error
2. This isn't how you do event handling in react