React-google-maps: Can't find variable: google

Created on 6 Mar 2018  路  4Comments  路  Source: tomchentw/react-google-maps

Getting Help

Before doing this, did you:

  1. Read the documentation yup
  2. Read the source code yup

Hey,

I have Sentry reports about an error coming from this line.

Snippet: com/tomchentw/react-google-maps/pull/168");var t=new google.maps.Map(e);this.setState({map:t})}}},{key:"render",value:function(){var e=this.

It happens when using the module with uBlock installed. I could open a PR, but would like some guidance before doing the work. I am thinking about a onError prop, fired when this case happens.

What do you think?

Thanks in advance :)

All 4 comments

Having the same problem here. But it have only happend once and only on:

Mobile Safari: Version: 11.0
iOS: Version: 11.4.1
iPhone

"react-google-maps": "^9.4.5",

image

ReferenceError: Can't find variable: google
  at apply(../node_modules/react-google-maps/lib/withGoogleMap.js:149:1)
  at wrapper(../node_modules/react-google-maps/node_modules/lodash/_createBind.js:23:1)
  at ai(../node_modules/react-dom/cjs/react-dom.production.min.js:221:130)
  at Vh(../node_modules/react-dom/cjs/react-dom.production.min.js:212:214)
  at Yh(../node_modules/react-dom/cjs/react-dom.production.min.js:211:277)
  at Wh(../node_modules/react-dom/cjs/react-dom.production.min.js:211:113)
  at Ah(../node_modules/react-dom/cjs/react-dom.production.min.js:209:244)
  at og(../node_modules/react-dom/cjs/react-dom.production.min.js:207:316)
  at enqueueSetState(../node_modules/react-dom/cjs/react-dom.production.min.js:148:225)
  at setState(../node_modules/react/cjs/react.production.min.js:12:344)
  at apply(../node_modules/react-google-maps/lib/withScriptjs.js:116:1)
  at wrapper(../node_modules/react-google-maps/node_modules/lodash/_createBind.js:23:1)
  at callback(../node_modules/scriptjs/dist/script.js:48:1)
  at ? (../node_modules/scriptjs/dist/script.js:82:1)

I have the exact same Sentry report as @yoieh. It happens infrequently.

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shrimpy picture shrimpy  路  3Comments

manoj150283 picture manoj150283  路  3Comments

0x1bitcrack3r picture 0x1bitcrack3r  路  3Comments

bansalvks picture bansalvks  路  3Comments

craigcartmell picture craigcartmell  路  4Comments