#react module error?

13 messages · Page 1 of 1 (latest)

mint crypt
#

Can u try this..? (based on my knowledge)

#

<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..

viscid arrow
#

v6

viscid arrow
#

it worked but another one here :

mint crypt
#

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

drifting salmon
#

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

mint crypt
drifting salmon
mint crypt