You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i have 2 components that are Map's on a page I get the following error not sure how to fix this.
map-action.js:31
Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'accessToken')
at init (map-action.js:31:31)
at map-action.js:19:14
at load (asset-loader.js:7:9)
at action (map-action.js:18:3)
at mount (Map.svelte? [sm]:15:6)
at Object.targetCmp.$$.fragment.m (svelte-hooks.js:216:24)
at mount_component (index.mjs:1798:26)
at mount (MapBox.svelte:36:12)
at Object.targetCmp.$$.fragment.m (svelte-hooks.js:216:24)
at mount_component (index.mjs:1798:26)
The text was updated successfully, but these errors were encountered:
I think the problem is the asset loader callback is being called before the asset has loaded. A quick work around is to statically load the assets before initialising the map by putting these in the <head>
When i have 2 components that are Map's on a page I get the following error not sure how to fix this.
map-action.js:31
Uncaught (in promise) TypeError: Cannot set properties of undefined (setting 'accessToken')
at init (map-action.js:31:31)
at map-action.js:19:14
at load (asset-loader.js:7:9)
at action (map-action.js:18:3)
at mount (Map.svelte? [sm]:15:6)
at Object.targetCmp.$$.fragment.m (svelte-hooks.js:216:24)
at mount_component (index.mjs:1798:26)
at mount (MapBox.svelte:36:12)
at Object.targetCmp.$$.fragment.m (svelte-hooks.js:216:24)
at mount_component (index.mjs:1798:26)
The text was updated successfully, but these errors were encountered: