JavaScript warning on frontend
-
On frontend a JavaScript warning is logged per maps block:
`
js?v=3.exp&language=de&key=[...]:67 InvalidValueError: setIcon: not a string; and not an instance of PinView; and no url property; and no path property _.fe @ js?v=3.exp&language=de&key=[...]:67 _.ie @ js?v=3.exp&language=de&key=[...]:68 (anonymous) @ js?v=3.exp&language=de&key=[...]:90 _.M.setValues @ js?v=3.exp&language=de&key=[...]:214 sg @ js?v=3.exp&language=de&key=[...]:95 _.Ug @ js?v=3.exp&language=de&key=[...]:101 j.createMarker @ gmaps.min.js?ver=0.4.25:1 j.addMarker @ gmaps.min.js?ver=0.4.25:1 (anonymous) @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 h @ script.min.js?ver=5.7:12 u.onload.u.onerror.u.<computed> @ script.min.js?ver=5.7:12 load (async) v @ script.min.js?ver=5.7:12 e @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 d @ script.min.js?ver=5.7:12 p @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 setTimeout (async) g @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 h @ script.min.js?ver=5.7:12 u.onload.u.onerror.u.<computed> @ script.min.js?ver=5.7:12 load (async) v @ script.min.js?ver=5.7:12 e @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 d @ script.min.js?ver=5.7:12 p @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 setTimeout (async) g @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 each @ jquery.js?ver=3.5.1:381 each @ jquery.js?ver=3.5.1:203 value @ script.min.js?ver=5.7:12 value @ script.min.js?ver=5.7:12 (anonymous) @ script.min.js?ver=5.7:12 requestAnimationFrame (async) (anonymous) @ script.min.js?ver=5.7:12 f @ script.min.js?ver=5.7:12 u @ script.min.js?ver=5.7:12 js?v=3.exp&language=de&key=[...]:67 InvalidValueError: setIcon: not a string; and not an instance of PinView; and no url property; and no path property
`
The map blocks still appear to work properly, but the warning indicates that a variable is not checked in the block script.
- The topic ‘JavaScript warning on frontend’ is closed to new replies.