jspm / generator

JSPM Import Map Generator
Apache License 2.0
160 stars 20 forks source link

TypeError: s is not a function on newer versions of an importmapped package #318

Closed wbugenis closed 10 months ago

wbugenis commented 10 months ago

I'm not entirely sure if this is your department, but figured I'd give it a try in case you can offer me any advice, or at least point me in the right direction. I'm using the agora-rtc-sdk-ng package in my rails app (using importmap-rails), which works flawlessly with version 4.15.1, with this link - https://ga.jspm.io/npm:agora-rtc-sdk-ng@4.15.1/AgoraRTC_N-production.js

However, when I try pin any of the more recent versions, up to the latest of 4.18.2, linked here - https://ga.jspm.io/npm:agora-rtc-sdk-ng@4.18.2/AgoraRTC_N-production.js, I get the following error - image

Is there anything I can do as an end user of this package to resolve this issue, or is this something the developer of the package would have to fix? I'm not sure if this an answerable question, but what would the fix be, if the developer has to do it?

Thanks for your help, and sorry if this is outside of your wheelhouse - I've reached out to their support team as well but they haven't figured out a resolution for it yet, so I figured I'd give you guys a shot.

guybedford commented 10 months ago

Thanks for posting the bug! I was able to track this down to a jspm.io CDN build error and upload a fix - it should be working now if you clear your browser cache.