esm-dev / esm.sh

A fast, smart, & global CDN for modern(es2015+) web development.
https://esm.sh
MIT License
3.14k stars 151 forks source link

console message: esm.sh cannot find requested imports #61

Open DanielKehoe opened 3 years ago

DanielKehoe commented 3 years ago

I'm making a comparison of module CDNs.

I have a series of test pages for module CDNs:

When I try esm.sh, I get a console error:

Uncaught SyntaxError: The requested module 'https://esm.sh/lit@2.0.0-rc.1' does not provide an export named 'LitElement'

I'm using (for a pinned version): import { LitElement, html } from 'https://esm.sh/lit@2.0.0-rc.1'; and for an unpinned version: import { LitElement, html } from 'https://esm.sh/lit';

I'm following the import syntax I saw at https://esm.sh/.

The page loads correctly with jspm.dev or Skypack module CDNs.

How do I make esm.sh work correctly? Am I making an error in my import syntax or is this a bug with esm.sh or esbuild?

ije commented 3 years ago

i didn't(can't) test all packages since i built this for alephjs, in http://esm.sh/?test you can see some packages I focused on. i will look into it, thanks! btw install.guide looks awesome, nice work