Closed Arkellys closed 2 days ago
My best guess is you have a cache somewhere that's out of date. Try deleting your node_modules folder, as it's often stored there.
Unfortunately, this isn't an issue with the library.
I have the same problem after running rm -rf node_modules
and npm cache clean --force
.
What version of React Router are you using?
7.0.1
Steps to Reproduce
I've followed upgrading from v6 documentation:
And:
This is my
jsconfig.json
config:And I'm using
eslint-plugin-import
v2.31.0
along with ESLintv9.15.0
. The relevant rule configuration is:Expected Behavior
I expect ESLint no to flag
"react-router/dom"
import as unresolved.Actual Behavior
I get a ESLint
import/unresolved
error on the import"react-router/dom"
. The imports from"react-router"
are not flagged. This is just a ESLint error, the import works fine and my IDE resolves it correctly. Restarting the IDE and ESLint Server didn't solve the issue.Honestly, I can't tell if the bad configuration comes from my project,
react-router
oreslint-plugin-import
?