#Error during staring a dev server
1 messages · Page 1 of 1 (latest)
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.
Something I would do is delete the package-lock file and delete the node_modules folder. Then install from npm again.
i tried that serveral times but the errir still persist
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?
No, and in fact i don't have it in my package.json
you have something that depends on it then 🤔
what does npm ls react-router-dom output?
or I guess pnpm why react-router-dom
devDependencies:
remix-flat-routes 0.6.5
├─┬ @remix-run/dev 2.17.0 peer
│ └─┬ @remix-run/react 2.17.0 peer
│ └── react-router-dom 6.30.0
└─┬ @remix-run/v1-route-convention 0.1.4
└─┬ @remix-run/dev 2.17.0 peer
└─┬ @remix-run/react 2.17.0 peer
└── react-router-dom 6.30.0
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