meodai / poline

Esoteric Palette Generator Mico-Lib Interpolating HSL Color in cartesian space
https://meodai.github.io/poline/
MIT License
672 stars 33 forks source link

Web app failing to load due to broken version of culori. Skypack CDN appears to be defunct #16

Closed cdfuller closed 1 year ago

cdfuller commented 1 year ago

Their site has a broken search function, there's issues showing the same error for other packages, and there doesn't appear to be anybody behind the project any more. When culori pushed a new version yesterday Skypack's build process failed and is now serving the following:

/*
 * [Package Error] "culori@v3.1.0" could not be built. 
 *
 *   [1/5] Verifying package is valid…
 *   [2/5] Installing dependencies from npm…
 *   [3/5] Building package using esinstall…
 *   Running esinstall...
 *   Failed to load node_modules/culori/bundled/culori.cjs
 *     The keyword 'let' is reserved (4181:4) in culori/bundled/culori.cjs
 *   Install failed.
 *   Install failed.
 *
 * How to fix:
 *   - If you believe this to be an error in Skypack, file an issue here: https://github.com/skypackjs/skypack-cdn/issues
 *   - If you believe this to be an issue in the package, share this URL with the package authors to help them debug & fix.
 *   - Use https://skypack.dev/ to find a web-friendly alternative to find another package.
 */

console.warn("[Package Error] \"culori@v3.1.0\" could not be built. \n[1/5] Verifying package is valid…\n[2/5] Installing dependencies from npm…\n[3/5] Building package using esinstall…\nRunning esinstall...\nFailed to load node_modules/culori/bundled/culori.cjs\n  The keyword 'let' is reserved (4181:4) in culori/bundled/culori.cjs\nInstall failed.\nInstall failed.");
throw new Error("[Package Error] \"culori@v3.1.0\" could not be built. ");
export default null;

This is causing the poline web app to fail to load.

Skypack Issues for some context

meodai commented 1 year ago

@cdfuller thanks so much for catching that. The API in culori 3.x has changed, so I made it use v 2.0 specifically for now.