#react module error?
13 messages · Page 1 of 1 (latest)
<BrowserRouter>
<Routes>
<Register/>
</Routes>
</BrowserRouter>
or
<BrowserRouter>
<Routes>
<Route path="/" element={<Register />} />
</Routes>
</BrowserRouter>
Which react version u r using...? there's no strict mode wrapped..
v6
it worked but another one here :
I think ur react version is of less than 18.x.x.
On that case there's no need of react strict mode.
The routing also changed in new version of react router Dom
The one I mentioned is of react 18.x.x and dom 6.x.x
Try deleting the package-lock.json and remove react-router-dom and react in package.json and then run npm install react react-router-dom
My project was working yesterday before I shutdown my computer. Now when I try to start the React App this is what I get. I tried the solution but still didn't work. help
Are those two images there in ur folder?
yes they are
Drag that images folder inside src n try..