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
Uncaught TypeError: Cannot read properties of null (reading 'nanoid')
at events.js:2:32
So, the package is not importable at all. As far as I can tell, the issue seems to be that if i go to https://cdn.jsdelivr.net/npm/[email protected]/+esm, it gives no default export (export default null), whereas the Mapbox package is set to import s from"/npm/[email protected]/+esm" and then does s.nanoid and that's null. So, I believe the solution would be instead to:
Hi, this code:
will raise the following error:
So, the package is not importable at all. As far as I can tell, the issue seems to be that if i go to https://cdn.jsdelivr.net/npm/[email protected]/+esm, it gives no default export (
export default null
), whereas the Mapbox package is set toimport s from"/npm/[email protected]/+esm"
and then doess.nanoid
and that'snull
. So, I believe the solution would be instead to:and to rely on the specific export rather than the default export.
Thanks so much!
The text was updated successfully, but these errors were encountered: