Typescript definition for response-router v2.0 - error `has no exported member 'browserHistory``

I am using response-router v.2.0.0.-rc3 and typescript. I installed the definition file via tsd . Since they changedbrowserHistory from bein mixin to module, I get an error Module '"react-router"' has no exported member 'browserHistory'on my terminal when compiling javascript via webpack, is there an easy way to change the file react-router.d.tsto fix the error? Or do I just need to wait until they update the definition file? My application is working fine, I'm just scared of an error.

+4
source share
1 answer

Awesome James Brantley pointed out that pullrequrest for v2.x already exists . I used and all the errors are gone!

+1
source

Source: https://habr.com/ru/post/1623399/


All Articles