Closed illume closed 1 year ago
It appears you're importing the @remix-run/router
files directly from the package. Instead, only import from the top-level package (just @remix-run/router
), as you will not get the transpiled code and separate type defs.
What version of React Router are you using?
1.0.3 and 1.0.2 typescript errors
Steps to Reproduce
I had two typescript errors with 1.0.3 not in 1.0.1. 1.0.2 only had the second of the errors(the ts-expect-error one below).
I guess it may be something to do with the v5 compatibility types, but don't really know the codebase.
Haven't been able to narrow it down further than below, sorry. (I expect this won't be useful, but it's the best I can do).
Expected Behavior
No typescript errors.
Actual Behavior