Skip to content
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

Failed to import types - React, connection timed out #508

Closed
KyleJune opened this issue Jan 27, 2023 · 3 comments
Closed

Failed to import types - React, connection timed out #508

KyleJune opened this issue Jan 27, 2023 · 3 comments
Labels
deno Not working in Deno

Comments

@KyleJune
Copy link

Failing module

import "https://esm.sh/react@18.2.0/jsx-runtime?target=deno&pin=v104";

Error message

I noticed each time my script runs, it would keep trying to download the types. This made me think the request was failing, causing it to not get cached and causing it to retry downloading it each time the script ran.

Download https://esm.sh/v103/@types/react@^18/jsx-dev-runtime~.d.ts

If I go to the module url and check dev tools network tab, I can see it responds with a matching x-typescript-types header.

x-typescript-types | https://esm.sh/v104/@types/react@^18/jsx-runtime~.d.ts

Here is the error I get if I go to that types url.

image

Additional info

  • esm.sh version: v104
  • Deno version: 1.29.4
@KyleJune KyleJune added the deno Not working in Deno label Jan 27, 2023
@ije ije closed this as completed in 8886700 Jan 27, 2023
@ije
Copy link
Member

ije commented Jan 27, 2023

now it works, this is cursed by loop redirects between the CDN and the esm server

@ije
Copy link
Member

ije commented Jan 27, 2023

thanks for reporting

@KyleJune
Copy link
Author

Thanks for the quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deno Not working in Deno
Projects
None yet
Development

No branches or pull requests

2 participants