Fixing “You have included the Google Maps API multiple times on this page. This may cause unexpected errors.”

前端 未结 3 1251
萌比男神i
萌比男神i 2020-12-17 19:23

I\'ve included two below scripts in my header and I get the error \"You have included the Google Maps API multiple times on this page. This may cause unexpected errors.\

3条回答
  •  清酒与你
    2020-12-17 20:08

    I know that in my case it's not a Rails app but might help to someone else ... I'm working with React and I was getting the same error when I was switching between views/pages.

    And like wLc said window.google = {} worked like a charm and was deleting the error in the console but the

提交回复
热议问题