skypackjs / skypack-cdn

An issue tracker for the CDN
107 stars 5 forks source link

[Package Error] "d3@v7.7.0" could not be built. #332

Open KasperKrawczyk opened 1 year ago

KasperKrawczyk commented 1 year ago

As indicated in the title; d3 is not available.

mbostock commented 1 year ago

Here is the result for https://cdn.skypack.dev/d3@7:

/*
 * [Package Error] "d3@v7.7.0" could not be built. 
 *
 *   [1/5] Verifying package is valid…
 *   [2/5] Installing dependencies from npm…
 *   No matching version found for d3@7.7.0.
 *
 * 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] \"d3@v7.7.0\" could not be built. \n[1/5] Verifying package is valid…\n[2/5] Installing dependencies from npm…\nNo matching version found for d3@7.7.0.");
throw new Error("[Package Error] \"d3@v7.7.0\" could not be built. ");
export default null;

It seems that jsDelivr can build the package fine though, so I’m not sure what’s wrong here.

https://cdn.jsdelivr.net/npm/d3@7/+esm

SimulShift commented 1 year ago

getting same issue just now

KasperKrawczyk commented 1 year ago

Here is the result for https://cdn.skypack.dev/d3@7:

/*
 * [Package Error] "d3@v7.7.0" could not be built. 
 *
 *   [1/5] Verifying package is valid…
 *   [2/5] Installing dependencies from npm…
 *   No matching version found for d3@7.7.0.
 *
 * 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] \"d3@v7.7.0\" could not be built. \n[1/5] Verifying package is valid…\n[2/5] Installing dependencies from npm…\nNo matching version found for d3@7.7.0.");
throw new Error("[Package Error] \"d3@v7.7.0\" could not be built. ");
export default null;

It seems that jsDelivr can build the package fine though, so I’m not sure what’s wrong here.

https://cdn.jsdelivr.net/npm/d3@7/+esm

Thanks! Anyone else in particular who should be alerted about this issue?

DjordjeDursun commented 1 year ago

Change import to import * as d3 from "https://cdn.jsdelivr.net/npm/d3@7/+esm";