googlemaps / js-api-loader

Load the Google Maps JavaScript API script dynamically.
Apache License 2.0
360 stars 64 forks source link

Uncaught TypeError: this.wn is not iterable #862

Open AndyBarreL opened 1 month ago

AndyBarreL commented 1 month ago

Environment details

  1. unpkg link via <script src="https://unpkg.com/@googlemaps/js-api-loader@1.x/dist/index.min.js"></script>
  2. MacOS
  3. Library version and other environment information

Steps to reproduce

  1. Unable to load anything with loader

Code example

const loader = await new google.maps.plugins.loader.Loader({
      apiKey: "API_KEY",
      version: 'weekly',
      mapId: "google-map",
    }).load();

Error

Uncaught TypeError: this.wn is not iterable at _.sp.yj (main.js:355:43) at _.sp.yj (main.js:359:571) at Hp.Fg (main.js:354:180) at Gda (main.js:191:291) at main.js:236:101 at _.Ha (main.js:36:272) at main.js:433:35 at main.js:464:103 Following these steps will guarantee the quickest resolution possible.

Thanks!

usefulthink commented 1 month ago

I can't reproduce this isssue. See here: https://codesandbox.io/p/sandbox/falling-leaf-yrx9s2

There has to be something else going on, can you provide a reproducible example of the problem?