I'm using create-react-app and I have a line that says:
import createHistory from 'history/lib/createBrowserHistory'
but this doesn't work and it throws an error:
Error in ./src/deps/history.js.
Module not found: 'history/lib/createBrowserHistory' 
in /home/aurimus/Apps/projects/my-project/src/deps
Is this specifically not supported by create-react-app? How do I circumvent this?
***UPDATE***
After correction to the url of the lib (was using an outdated tutorial), I still get nothing imported, createBrowserHistory is undefined
I'm using additional file to abstract the import:
Inside deps/history.js
import createBrowserHistory from 'history/createBrowserHistory.js'
export default createBrowserHistory
Inside index.js
import history from './deps/history';
history.listen(render); // history is undefined
Am I doing anything wrong?
 
     
    