Estoy teniendo el siguiente error:
bundle.js:117850 Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same appParece que no he cometido ningún error como se menciona en la consola. No puedo entender qué está pasando. Mi archivo package.json:
{ "name": "hackervatsal", "version": "0.1.0", "private": true, "dependencies": { "@chakra-ui/react": "^1.8.8", "@testing-library/jest-dom": "^5.16.4", "@testing-library/react": "^13.2.0", "@testing-library/user-event": "^13.5.0", "firebase": "^9.8.1", "framer-motion": "^6.3.3", "react": "^18.1.0", "react-bootstrap": "^2.3.1", "react-dom": "^18.1.0", "react-icons": "^4.3.1", "react-router-dom": "^6.3.0", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" }, "scripts": { "start": "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" ] } }¿La versión de react y react-dom está en conflicto en mi caso? se agradece cualquier ayuda