History V4 support
DRichter-r opened this issue · 3 comments
DRichter-r commented
Hi!
We´re still using history V4.10.1 because of other dependencies. With the newest update to redux-first-history 5.1.1. it seems like the support for history V4 broke.
The Error is: error TS2339: Property 'back' does not exist on type 'History'.
Can you recreate this behavior?
Best wishes,
Daniel.
salvoravida commented
@DRichter-r can you add a codesandbox example?
DRichter-r commented
Here´s a repo where the error is reproduced: https://github.com/ceisele-r/redux-first-history-tsc-repro.git
with this Error
The issue might be that @types/react-router and @types/react-router-dom pull @types/history v4.7.11 as depencies.
salvoravida commented
you have to use "skipLibCheck": true, that's because rfh support both v4/v5