You need to sign in to do that
Don't have an account?
Cristian_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:
Any thoughts?
"[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?
It might be old versions of Firefox issue. what version of Firefox you are having. Upgrade to recent version and try
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.