skypackjs / skypack-cdn

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

lit latest versions won´t work on skypack #255

Open MOJOCO75 opened 2 years ago

MOJOCO75 commented 2 years ago

The requested module 'https://cdn.skypack.dev/lit' does not provide an export named 'LitElement'

/*

// Browser-Optimized Imports (Don't directly import the URLs below in your application!) export * from '/error/build:lit@v2.1.0-eeSGvTXo4JxomhgnB622'; export {default} from '/error/build:lit@v2.1.0-eeSGvTXo4JxomhgnB622';

dtanp-rft commented 2 years ago

The issue seems to be lied on Lit itself and we found that Lit 2.1.1 fixed this issue.

goremikins commented 2 years ago

The issue came back with lit@2.1.3. The output from SkyPack when trying to call https://cdn.skypack.dev/lit-html:

/*
 * [Package Error] "lit-html@v2.1.3" could not be built. 
 *
 *   [1/5] Verifying package is valid…
 *   [2/5] Installing dependencies from npm…
 *   No matching version found for lit-html@2.1.3.
 *
 * 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] \"lit-html@v2.1.3\" could not be built. \n[1/5] Verifying package is valid…\n[2/5] Installing dependencies from npm…\nNo matching version found for lit-html@2.1.3.");
throw new Error("[Package Error] \"lit-html@v2.1.3\" could not be built. ");
export default null;
dtanp-rft commented 2 years ago

Hi SkyPack Team,

How the CDN pull the dependency version? I found that currently, the latest version of lit is v2.1.3 but when I use my component which has dependency with lit, it's still pulling v2.1.2.