There seems there was a unpkg outage as of recently. It might be affecting one of our website. The whole site is buggy in its entirety, pretty much all of the pages are bugged right now and these are the errors I’m getting


Im not sure what to do about this, other than change the package import but im not really sure what its used for, how to fix it, or where its even located.
Might be of note, its affecting me and a user who reported it but not another coworker of mine.
Those are the Stimulus and Turbo libraries. The import statements are found in the Experience Page cpf-script
. There is another module loaded from unpkg in cpf-layout
.
I’m looking for an alternative CDN and will provide replacement instructions as soon as I find it.
1 Like
Thanks for the quick reply, seems to still be an activite issue even though some sites are reporting unpck is back up. Long chains of people still talking about it on GitHub
Fortunately jsdelivr has a nice migration tool from unpkg.
https://www.jsdelivr.com/unpkg
Here are the update instructions:
- Open the Experience Page
cpf-script
and replace the top two unpkg URLs with the following replacements:
https://cdn.jsdelivr.net/npm/@hotwired/stimulus@3.2.2/dist/stimulus.js
https://cdn.jsdelivr.net/npm/@hotwired/turbo@7.3.0/dist/turbo.es2017-esm.js
- Open the Experience Layout
cpf-layout
. Find the relative-time-element
script tag (2nd to last script tag). Replace that URL with this one:
https://cdn.jsdelivr.net/npm/@github/relative-time-element@4.3.0/dist/bundle.js
1 Like
Excellent!
We load those libraries from a CDN to avoid things like this, but I suppose CDNs can go down from time to time also.
If you want, you can download those files from the CDN and upload them into Application Files. Once uploaded, you can replace those URLs again with their files.onlosant.com
URL. Application Files are served through the AWS Cloudfront CDN, which is quite stable.