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.

IE9 and IE10 - Unable to get property 'center' of undefined or null reference

See original GitHub issue

I’m getting this error with the last version of the lib. Might be because of this line here:

var _this = _possibleConstructorReturn(this, Object.getPrototypeOf(GoogleMap).call(this, props));

Specifically Object.getPrototypeOf(GoogleMap).call(this, props) which I think is not supported by these browsers.

What should we do? Use some sort of polyfill?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
joaovpmamedecommented, Aug 25, 2016

@istarkov fixed 😃

PR here https://github.com/istarkov/google-map-react/pull/224

And thanks for trying to help me.

Btw, I was trying to use my fork on package.json like so:

"google-map-react": "joaovpmamede/google-map-react",

but for any reason when I do a npm install it doesn’t run the build script.

Edit: Had to use this: https://github.com/lzrski/npm-git-install

0reactions
joaovpmamedecommented, Aug 25, 2016

@istarkov Yup I tried with that polyfill but it didn’t work. I’ll try a couple more options. I’m still trying to understand what this does exactly: Object.getPrototypeOf(GoogleMap).call(this, props). This is basically calling the React Component constructor with the props passed in, correct?

Maybe but not sure if could break other things or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JS error on IE 9 and 10 - Unable to get property of 1 undefined ...
I am getting an error only on IE 9 and 10 (I am not supporting anything below IE9) and the site works fine...
Read more >
Unable to get property 'getTime' of undefined or null reference
Reset ie9 or ie10 manually,. Click the Start button on the Taskbar,. Click on Control panel,. Click on Internet options,. Go to the...
Read more >
Getting a "Unable to get property 'documentElement' of ...
"JavaScript runtime error: Unable to get property 'documentElement' of undefined or null reference" It stops in Telerik.Web.UI.
Read more >
IE10 Unable to get property 'center' of undefined or null ...
On only IE10 this is happening: IE10 Unable to get property 'center' of undefined or null reference code that causes issue: _this.mounted_ ...
Read more >
Excel web access webpart throwing javascript error ( in ...
In the meantime, try this. Press F12, to bring up the developer tools. In the Script tab, debug ewamoss.js file to see why...
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