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
Cristian_CociobanCristian_Cocioban 

cannot use the given object as a weak map key

I'm implementing a map in a lightning component by using leaflet. I'm getting a popup error in firefox:
"[cannot use the given object as a weak map key]" 

Same is working just fine in chrome and edge.

I've stripped all my code in controller and left only the leaflet and map div. Seems like the problem is in leaflet.js

So this all I have:
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes" access="global">
    <ltng:require styles="/resource/leaflet/leaflet.css"
        		  scripts="/resource/leaflet/leaflet.js"/>
        
    <div id="map" aura:id="map" class="slds-card map"  ></div>
</aura:component>

Any thoughts?
 
Raj VakatiRaj Vakati

It might be old versions of Firefox issue. what version of Firefox you are having. Upgrade to recent version and try 
Cristian_CociobanCristian_Cocioban
Hi Rav, I'm using latest firefox version: 59.0b11
Vinay Kumar VemulaVinay Kumar Vemula

Hi Cristian,

Use other browsers, like Chrome, Edge, Safari and older versions of Firefox 44.x to 52.0.2 it will works fine.
May be there is a Locker Service issue with latest versions of Firefox browser.