-3

Can someone explain what happened with my code in the console?

Image of the error

Text of the error message:

Uncaught TypeError TypeError: Cannot set properties of null (setting 'innerHTML') at <anonymous> (c:\Users\Lenovo\Downloads\PT.BaronMultiNiaga\index.html:160:44
Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading js?key=AIzaSyAgeuuDfRlweIs7D6uo4wdIHVvJ0LonQ6g:210

Uncaught TypeError TypeError: Cannot set properties of null (setting 'innerHTML') at (c:\Users\Lenovo\Downloads\PT.BaronMultiNiaga\index.html:161:44)
Google Maps JavaScript API has been loaded directly without a callback. This is not supported and can lead to race conditions and suboptimal performance. For supported loading patterns please see https://goo.gle/js-api-loading

Image of the error message

I tried to fix with the clue and I still cannot fix this error.

Please explain this error and how I am supposed to fix it.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Fahmi _1
  • 1
  • 1
  • What are you setting `innerHTML` on? That is null. You should include your code because we have no idea what's going on without it. – mykaf Aug 29 '23 at 15:45
  • so it can not find the element. Impossible to help without seeing actual code. Probably a dupe of https://stackoverflow.com/questions/14028959/why-does-jquery-or-a-dom-method-such-as-getelementbyid-not-find-the-element – epascarello Aug 29 '23 at 15:46
  • ahhh, i see.... okay, thanks for help – Fahmi _1 Aug 29 '23 at 15:48

0 Answers0