Ad
Typescript Definition For React-router V2.0 - Error `has No Exported Member 'browserHistory'`
I am using react-router v.2.0.0.-rc3 and typescript. I installed the definition file via tsd. Since they changed the browserHistory
from beeing a mixin to a module, I get the error Module '"react-router"' has no exported member 'browserHistory'
on my terminal when compiling the javascript via webpack. Is there an easy way I can modify the react-router.d.ts
file to fix the error? Or do I just have to wait until they update the definition file? My app is working fine, it is just the console-error that bugs me.
Ad
Answer
Awesome James Brantly pointed out that there is already an pullrequrest for v2.x. I used and all the errors are gone!
Ad
source: stackoverflow.com
Related Questions
- → Import statement and Babel
- → should I choose reactjs+f7 or f7+vue.js?
- → Uncaught TypeError: Cannot read property '__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined
- → .tsx webpack compile fails: Unexpected token <
- → React-router: Passing props to children
- → ListView.DataSource looping data for React Native
- → React Native with visual studio 2015 IDE
- → Can't test submit handler in React component
- → React + Flux - How to avoid global variable
- → Webpack, React & Babel, not rendering DOM
- → How do I determine if a new ReactJS session and/or Browser session has started?
- → Alt @decorators in React-Native
- → How to dynamically add class to parent div of focused input field?
Ad