Replies: 1 comment
-
I have the same issue, I added the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my project, I enforce
inline-import
for types. My eslint rules are likeWith these rules, inline type imports like this are allowed:
But top-level type imports are not:
However, when importing
Route
in React Router v7, there seems to be issues resolving paths when using inline type imports. For example:The error disappears if I use a top-level type import:
I want to maintain inline type imports across my project while resolving this issue. I could disable the rules or allow top-level imports, but I prefer to keep the rules consistent.
In the docs, it is mentioned as top level import so I was curious if anyone else faced this issue and there is a good workaround.
Beta Was this translation helpful? Give feedback.
All reactions