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

Invariant Violation: Browser history needs a DOM #1

Open
RyanThomas95 opened this issue Feb 8, 2018 · 1 comment
Open

Invariant Violation: Browser history needs a DOM #1

RyanThomas95 opened this issue Feb 8, 2018 · 1 comment

Comments

@RyanThomas95
Copy link

Hello! I have tried to add this line of code to my store.js file:
const history = createBrowserHistory();
But when I do, I get this error:
Invariant Violation: Browser history needs a DOM
Any ideas, tips?

@jpmarra
Copy link

jpmarra commented Feb 27, 2018

Are you using SSR? The server router can't use browser history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants