2017-05-30 2 views
0

Ich verwende Google Maps innerhalb einer React Js App. wenn ich schließen die Karten-Datei google,Reagieren JS und Google Maps Fehler

<script src="//maps.googleapis.com/maps/api/js?key=api_key"></script> 

wenige Sekunden später eine Google Auth Anruf getätigt wird und dann gibt sie, und ich bekomme:

Warning: Something is calling a React component directly. Use a factory or JSX instead. See: url 
[168]</warning(condition=false, format="Something is calling a R....me/react-legacyfactory")dev-script.js (line 32928) 
Number(props="8080", context=undefined, updater=undefined)dev-script.js (line 18728) 
_.Dk(a=Object { type="object"}, b="8080")common.js (line 17) 
_.Bk(a="http://localhost:8080/app/dist/js/init.js", b=undefined)common.js (line 16) 
DB.prototype.j()util.js (line 219) 
js?v=3.exp&key=AIzaSyD1oZ-Do7cZYvwYIRGkMI2qpVmv1Vw6AU8(a=Object { type="object"}, b=Object { type="object"})js?v=3....1Vw6AU8 (line 133) 
Xc/e<()js?v=3....1Vw6AU8 (line 53) 
_.Mc/<()js?v=3....1Vw6AU8 (line 50) 
Xc/</<(a=Object { type="object"})js?v=3....1Vw6AU8 (line 53) 
Rc.prototype.ib/</d[a]<()js?v=3....1Vw6AU8 (line 104) 
_.Mc/<()js?v=3....1Vw6AU8 (line 50) 
Rc.prototype.ib/</d[a]<()js?v=3....1Vw6AU8 (line 104) 
_.Mc/<()js?v=3....1Vw6AU8 (line 50) 
Rc.prototype.ib/<(e=Object { type="object"})js?v=3....1Vw6AU8 (line 104) 
Sc(a=Object { type="object"}, b=Object { type="object"})js?v=3....1Vw6AU8 (line 52) 
Rc.prototype.ib(a="util", b=Object { type="object"})js?v=3....1Vw6AU8 (line 104) 
util.js()util.js (line 1) 

Der Fehler geht weg, wenn ich nicht enthalten die Google Maps-Datei

+0

die '

0

Es war eine Variable, die ich Nummer verwendet. Google Maps verwendet es auch. Konflikte verursacht.