React Router drops Cannot find module 'react-router / lib / HashHistory

Using reactive router and going through example provided that I getError: Cannot find module 'react-router/lib/HashHistory'

I am adding to my project as follows

import HashHistory from 'react-router/lib/HashHistory';

      

I am using browserify

forjsx compiling

Checking lib folder in node_modules in responding router I can't see any of the ones required to exist

+3


source to share


1 answer


Have a look at http://rackt.github.io/react-router/ for the latest stable docs (0.13.3). Examples on the master github branch for a new, unreleased version of reactive router.



Edit . This link no longer works and now the most recent stable docs are actually on the master branch. https://github.com/reactjs/react-router/tree/master/docs

+1


source







All Articles