Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lose site of HashHistory on beta4. Where is it? #1802

Closed
axross opened this issue Sep 2, 2015 · 3 comments
Closed

Lose site of HashHistory on beta4. Where is it? #1802

axross opened this issue Sep 2, 2015 · 3 comments

Comments

@axross
Copy link

axross commented Sep 2, 2015

Hi. Thank you I usually use react-router!

I have a question.

I lose site of HashHistory on beta4. Where is it?

% node                                                               [18:14:58]
> var history = require('react-router/lib/HashHistory').history;
Error: Cannot find module 'react-router/lib/HashHistory'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at repl:1:11
    at REPLServer.defaultEval (repl.js:132:27)
    at bound (domain.js:254:14)
    at REPLServer.runBound [as eval] (domain.js:267:12)
    at REPLServer.<anonymous> (repl.js:279:12)
    at REPLServer.emit (events.js:107:17)

I could not find HashHistory in node_modules/react-router/lib.

@axross axross changed the title Lose site of HashHistory on beta4 Lose site of HashHistory on beta4. Where is it? Sep 2, 2015
@axross axross closed this as completed Sep 2, 2015
@capaj
Copy link

capaj commented Sep 2, 2015

@axross why did you close this? I have the same issue-where is it?

@gaearon
Copy link
Contributor

gaearon commented Sep 2, 2015

I think HashLocation now is used by default so you don't need to specify it.
Instead of HistoryLocation, you can use createHistory() from rackt/history.

@capaj
Copy link

capaj commented Sep 2, 2015

@gaearon thanks, greatly appreaciated. I think I can close the SO question as well.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants