question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

get error history.getCurrentLocation is not a function()

See original GitHub issue

Hi. 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:closed
  • Created 7 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
alisd23commented, Jan 25, 2017

@JohnLouderback Yeah the react-router peer dependency should be enough to guarantee that history v3 is installed. Looks like history was upgraded to v4 somehow…

Either way glad it’s working now!

1reaction
alisd23commented, Nov 25, 2016

Try rm node_modules/react-router -fr && npm install

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found