twoslashes / twoslash

Markup for generating rich type information in your documentations ahead of time.
https://twoslash.netlify.app/
MIT License
430 stars 16 forks source link

Broken example for `twoslash-cdn` #27

Open rcoopr opened 4 months ago

rcoopr commented 4 months ago

https://twoslash-cdn-examples.netlify.app/

The code block is never rendered and the console errors with Uncaught SyntaxError: import not found: createTwoSlashFromCDN

Possibly related, but I have been trying to integrate twoslash into a chrome extension, but run into some errors on initialising as shown in the example - but it might be related to chrome extension permissions, I need to do some more testing

GET https://typescript.azureedge.net/cdn/5.4.2/typescript/lib/lib.esnext.weakref.d.ts 404 (Not Found)
GET ... *more urls*
GET https://data.jsdelivr.com/v1/package/resolve/npm/@types/readline@latest 404 (Not Found)