[ad_1]
I am getting error of “Invalid hook call”. And i think it’s because of “You might have mismatching versions of React and the renderer (such as React DOM)”.
When i do npm ls react-dom i get:
This is my package.json
{
"name": "client",
"version": "0.1.0",
"private": true,
"proxy": "http://localhost:3333",
"dependencies": {
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.2",
"@testing-library/user-event": "^13.5.0",
"axios": "^0.26.0",
"bootstrap": "^5.1.3",
"bootstrap-icons": "^1.8.1",
"react": "^17.0.2",
"react-bootstrap": "^2.2.2",
"react-dom": "^17.0.2",
"react-router-dom": "^6.2.1",
"react-scripts": "5.0.0",
"react-stack-grid": "^0.7.1",
"react-table": "^7.7.0",
"socket.io-client": "^4.5.0",
"styled-components": "^5.3.3",
"web-vitals": "^2.1.4"
},
"scripts": {
"start": "PORT=8000 react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
I’m ussing node, react, express, react-bootstrap, socket-io.
Any idea how to solve it?
[ad_2]