-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deno with esm.sh #72
Comments
That looks like an |
Oh you know my internet was flaky. Let me try again |
Still not working. its not my internet. |
I tried opening an interactive deno shell, and entered: import {retext} from 'https://cdn.skypack.dev/retext@8.1.0?dts'
retext.parse('an example sentence') it worked fine, this issue is specific to esm.sh not retext. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This was logged as esm-dev/esm.sh#215 |
How do I load |
That sounds like a question either for skypack, or for deno folks. |
@ralyodio skypack works largely the same as esm.sh, it uses the url structure So it would look like: import retextKeywords from 'https://cdn.skypack.dev/retext-keywords@7.1.0?dts'
import retextPos from 'https://cdn.skypack.dev/retext-pos@4.1.0?dts' checking with an interactive deno session, it looks like a nested package under
It may be worth floating that to the skypack folks to get a better understand of what the It may be worth checking some other CDNs, including: https://unpkg.com/, https://www.jsdelivr.com/esm, https://jspm.org/, etc Another option would not using a CDN, and using a unbundled build tool like snowpack https://www.snowpack.dev/concepts/how-snowpack-works to generate an ESM friendly web_modules folder (snowpack is a wrapper around https://www.npmjs.com/package/esinstall). |
Another note worth adding, typescript in deno has it's limitations currently, specifically handling ambient types, like those from definitely typed. |
Initial checklist
Problem
error: Import 'https://cdn.esm.sh/v57/nlcst-to-string@2.0.4/es2021/nlcst-to-string.js' failed: 408 Request Timeout
at https://cdn.esm.sh/v57/parse-latin@5.0.0/es2021/parse-latin.js:2:27264
Deosn't seem to work with Deno yet.
Solution
support Deno
Alternatives
https://esm.sh
The text was updated successfully, but these errors were encountered: