function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Thi huynhThi huynh 

TypeError cannot use the given object as a weak map key

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.
Glenn Montano 5Glenn Montano 5
I just got the same error trying to run through this  example.  Works in chrome but not in firefox.  Guess i'm moving forward with chrome...
Thi huynhThi huynh
Hello.
A case is open with Salesforce and they answered that the issue is coming from Mozilla and a ticket has been open over a month ago already...
Now we wait.
Vinay Kumar VemulaVinay Kumar Vemula
Any updates on this issue?
Please share case link or ID to follow.