IE9 and IE10 - Unable to get property 'center' of undefined or null reference
See original GitHub issueI’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:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top 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 >
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
@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:
but for any reason when I do a
npm install
it doesn’t run thebuild script
.Edit: Had to use this: https://github.com/lzrski/npm-git-install
@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 theprops
passed in, correct?Maybe but not sure if could break other things or not.