I created a React app using Bootstrap, and it runs fine. I installed React Bootstrap and now I'm getting the error { TypeError: Cannot read properties of null (reading 'useState'). I'm assuming it's a version conflict somewhere, but can I verify and download the latest?
I get this error as soon as I run the site after installing react-bootstrap
I ran npm install react-bootstrap bootstrap from the cmd line
the package.json file has: items pertaining to bootstrap and react version
"dependecies": {
"bootstrap":"^5.1.0",
"react":"^17.0.2"
}
react-bootstrap
in thedependencies
. Also, are you sure that you didn't remove an import by accident?