#Error during staring a dev server

1 messages · Page 1 of 1 (latest)

dim fern
#

Am getting the following error when starting apllication

am using "react-router": "^7.7.1",

dim fern
#

Here is the analysis from AI.
I’m wondering how this happened. I’m hesitant to upgrade react-router-dom because it might introduce more problems, as React Router manages that package internally.

feral junco
#

Something I would do is delete the package-lock file and delete the node_modules folder. Then install from npm again.

dim fern
#

i tried that serveral times but the errir still persist

plush storm
#

AI is right, you shouldn't have conflicting versions of React Router in your tree. Is there a reason you still need react-router-dom?

dim fern
#

No, and in fact i don't have it in my package.json

plush storm
#

you have something that depends on it then 🤔
what does npm ls react-router-dom output?

#

or I guess pnpm why react-router-dom

dim fern
plush storm
#

ahh then yeah you'll need to update remix-flat-routes. The latest version 0.8.5 doesn't have any dependencies on react-router or remix packages