• Thi huynh
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hello, 

I am coding a component that create a map with the leaflet API (http://leafletjs.com/examples/quick-start/).

The code is based on this example (https://developer.salesforce.com/blogs/developer-relations/2015/04/creating-salesforce-lightning-map-component.html).
Sightly modified to checked first if coordinates are given and if not uses the current User coordinates.

Everything is working fine on Chrome browser and old Firefox version (up to 48.0 included). For the version 49.0 to 55.0 of Firefox, it is not working.
It returns the following error :
TypeError cannot use the given object as a weak map key.

Did someone already got the same error ? Does someone know how to solve this?

Thanks.
Hello, 

I am coding a component that create a map with the leaflet API (http://leafletjs.com/examples/quick-start/).

The code is based on this example (https://developer.salesforce.com/blogs/developer-relations/2015/04/creating-salesforce-lightning-map-component.html).
Sightly modified to checked first if coordinates are given and if not uses the current User coordinates.

Everything is working fine on Chrome browser and old Firefox version (up to 48.0 included). For the version 49.0 to 55.0 of Firefox, it is not working.
It returns the following error :
TypeError cannot use the given object as a weak map key.

Did someone already got the same error ? Does someone know how to solve this?

Thanks.