ember-cli-g-maps icon indicating copy to clipboard operation
ember-cli-g-maps copied to clipboard

BUG: Browser crashes upon loading ember-cli-g-maps with new default JS API (v3.31)

Open eelke opened this issue 7 years ago • 3 comments

Describe your environment

  • Operating System version: Mac OS 10.13.3
  • Ember CLI version: 2.14.2
  • Ember CLI G Maps version: 0.5.14
  • Google Maps JavaScript API 3.31

Describe the problem

Yesterday my client reported the site did no longer 'work', and in fact was crashing browsers. I managed to distill the problem back to the initiation of the g-maps component and the loading of the Google Maps JS API.

On the Google Maps Release Notes website I read that on February 13 (currently two days ago) Google has pushed a new version of the JS API live, v 3.31.

Specifically loading the previous version (v3.30) bypasses this issue.

Note: While on my local development machine this lead to no issues, on the staging and live servers entire browsers crash upon loading the g-maps component.

Steps to reproduce:

  • Build application without specifying version: 3.30 should do it.

I personally use Ember in combination with PHP, and load the API through a direct URL and not the environment settings. <script src="//maps.googleapis.com/maps/api/js?sensor=false&v=3.30&key=API_KEY"></script>

Relevant Code:

  ENV.googleMap = {
    version: '3.30', // fixes the issue
    (...)
  }

eelke avatar Feb 15 '18 08:02 eelke

What is the error message and do you have an example application that's already live?

Matt-Jensen avatar Feb 15 '18 18:02 Matt-Jensen

@Matt-Jensen I can send you a link to the live & staging servers in private, where to?

eelke avatar Feb 16 '18 12:02 eelke

@eelke I'm running version 3.31.8a on a production app just fine. Are you sure this issue occurs with a default Ember app running the latest version of this addon?

Matt-Jensen avatar Feb 27 '18 14:02 Matt-Jensen