I’m working on a simple React + Vite site. As soon as I began implementing React Hooks, I got an Invalid Hook error that led me to finding I have multiple versions of React.
Screenshot of Multiple React Versions in Terminal
Now I know what the issue is, but I’m not sure how to fix it/go about removing a duplicate React version. Any suggestions? It looks like there is only one version listed in my dependencies:
Dependencies Screenshot
Jenny Sukut is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.