skypackjs / skypack-cdn

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

PhotoSwipe - CSS with multiple entry points in exports - esinstall fails #280

Open dimsemenov opened 2 years ago

dimsemenov commented 2 years ago

When serving the new version (5.2.2) of PhotoSwipe, there is an error.

[Package Error] \"photoswipe@v5.2.2\" 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…\n
Running esinstall...\n
Cannot find module 'photoswipe/photoswipe.css'");
throw new Error("[Package Error] \"photoswipe@v5.2.2\" could not be built.

https://cdn.skypack.dev/photoswipe

It seems esinstall is failing, can you suggest a correct markup for package.json - https://github.com/dimsemenov/PhotoSwipe/blob/master/package.json While keeping multiple exports of CSS file.