I cant understand this error. I spend a lot of time on this. I am new in Next.Js and using sequelize for mysql. This error has been occured on connection.
I tried to connect with mysql2 with sequelize in Next js and I expected that connection successfully. But not.
package.json is below:
{
"name": "node_auth_app",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@emotion/react": "^11.10.6",
"@emotion/styled": "^11.10.6",
"@mui/base": "^5.0.0-alpha.119",
"@mui/icons-material": "^5.11.11",
"@mui/material": "^5.11.11",
"@next/font": "13.2.3",
"@reduxjs/toolkit": "^1.9.3",
"dotenv": "^16.0.3",
"eslint": "8.35.0",
"eslint-config-next": "13.2.3",
"firebase": "^9.17.2",
"fs": "^0.0.1-security",
"mysql2": "^3.2.0",
"next": "13.2.3",
"pg": "^8.10.0",
"pg-hstore": "^2.3.4",
"react": "18.2.0",
"react-countup": "^6.4.2",
"react-dom": "18.2.0",
"react-google-charts": "^4.0.0",
"react-redux": "^8.0.5",
"redux-persist": "^6.0.0",
"sequelize": "^6.29.3",
"sweetalert2": "^11.4.8",
"zustand": "^4.3.6"
},
"devDependencies": {
"env-cmd": "^10.1.0",
"sequelize-cli": "^6.6.0"
}
}
node version is
v18.8.0
package.json
content (as a formatted text) and what version of node.js you use