open-wc / api-viewer-element

API documentation and live playground for Web Components. Based on Custom Elements Manifest format
https://api-viewer.open-wc.org
MIT License
271 stars 26 forks source link

CDN errors #178

Closed fehmi closed 8 months ago

fehmi commented 1 year ago

Unpkg:

image image

Skypack:

image image

jspm.dev

image

jsdelivr The only one than can work is https://cdn.jsdelivr.net/npm/api-viewer-element@1.0.0-pre.7/+esm. The downside of it there is no syntax highlighting in source panel.

image

I think I can live without it but is there any chance do you know any other way to use the tool via CDN without those errors and downsides.I tried to build a one IIFE version of the tool to host by myself the JS but no luck for now. Do you know how to do it?

nikolay167 commented 1 year ago

We are ready to provide our Global CDN which will fiz that issue, Let's Implement it to your project?

web-padawan commented 1 year ago

Thanks for the issue. Maintenance of this project is currently on hold due to my personal matters.

Also, the issue is likely related to the CDN itself, not the api-viewer-element npm package.

fehmi commented 1 year ago

What is the CDN URL you can provide? Thanks.

web-padawan commented 8 months ago

The issue of unpkg.com is tracked here: https://github.com/mjackson/unpkg/issues/303

web-padawan commented 8 months ago

Tested a few CDN providers and https://jspm.dev currently works fine import 'https://jspm.dev/api-viewer-element';.

fehmi commented 5 months ago

I'll look into it to see if it works.