get error history.getCurrentLocation is not a function()
See original GitHub issueHi. Thanks for ur package. I get this error and don’t know how to handle it
TypeError: history.getCurrentLocation is not a function(…)
any ideas?
Issue Analytics
- State:
- Created 7 years ago
- Comments:19 (9 by maintainers)
Top Results From Across the Web
history.getCurrentLocation is not a function · Issue #402 - GitHub
Im trying server side rendering with my react app import React, { Component, PropTypes } from 'react'; import ReactDOM from 'react-dom' ...
Read more >react-router 1.0 Error: Uncaught TypeError ... - Stack Overflow
Getting Uncaught TypeError: getCurrentLocation is not a function in createHistory.js while implementing react-router. What is wrong in my code?
Read more >You might not need React Router - Medium
import history from './history';function render(location) { /* Render React app, read on */ }render(history.getCurrentLocation()); // render the current URL
Read more >Geolocation.getCurrentPosition() - Web APIs | MDN
The Geolocation.getCurrentPosition() method is used to get the current position of the device.
Read more >HTML Geolocation API - W3Schools
The HTML Geolocation API is used to get the geographical position of a user. ... The getCurrentPosition() method is used to return the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@JohnLouderback Yeah the react-router peer dependency should be enough to guarantee that history
v3
is installed. Looks like history was upgraded tov4
somehow…Either way glad it’s working now!
Try
rm node_modules/react-router -fr && npm install