-
Notifications
You must be signed in to change notification settings - Fork 150
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
esm.sh types are not picked up #875
Comments
I am experiencing this same issue independent of Fresh. Just set up an empty directory, run import Stripe from "npm:stripe";
import Stripe2 from "https://esm.sh/[email protected]";
type t = Stripe.Price['id']
type u = Stripe2.Price['id'] The npm import has correct type info eg While the esm.sh import is nonsense I see nothing in the error or server logs to indicate an issue or error. Some esm.sh imports do work: import merge from "https://esm.sh/[email protected]"; I have no idea why though |
I tried this and it works fine for me: This may have been a temporary issue with esm.sh and might be related to denoland/fresh#1420 -- Can you try running the following if using fresh?
If that doesn't work, are there any other details you can provide? Do you have any errors in the output window (View -> Output -> Select "Deno Language Server" in the drop down)? @mazniak that is an issue with the esm.sh/stripe module. It's because of stripe/stripe-node#1636 -- the npm specifier handles it, but currently esm.sh does not. @deckchairlabs if you get the chance, please open a specific issue outlining the problem. I'm not sure how to reproduce that screenshot because I don't know what those bare specifiers map to. Also, try running...
...then see if there are any type checking errors. Running with |
Yeah does seem to be an issue on my end, theres no way to run |
I'll only be able to check next Friday |
I reloaded deno cache and all types are picked up now👍 |
Describe the bug
When generating a new Fresh 1.2.0 project, JSX and any library imported from
esm.sh
do not have types loaded, while the tooltip shows the correct types url following which types can be downloaded and work locally if copied.npm:
and denoland-based packages are working fine.To Reproduce
deno run -A -r https://fresh.deno.dev cd fresh-project deno task start
Expected behavior
When I use imports, autocompletion works and tooltips show signatures
Screenshots
Versions
vscode: 1.79.2 deno: 1.34.3 extension: 3.19.1
The text was updated successfully, but these errors were encountered: