-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
[BUG] lsp dts importmap #17829
Comments
Run |
Could not set npm package requirements. \
Error getting response at https://registry.npmjs.org/@types/node: \
An npm specifier not found in cache: "@types/node", --cached-only is specified.
|
The errors are gone. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Brief
Within importmap context, dts should resolve to dts of target file, instead of dts of source file.Edit: Not sure what happend, but I guess it's dts problem on lsp side.
Reproduce
import_map.json
Actual
Within vscode, below code type error on importId
comment-json
denoland.vscode-deno
deno language server log have many repeated same error,@types/node
not foundExpected
Within vscode, below code types are OK
Workaround
Within vscode, below code types are OK
Edit
Above workaround, offen works, sometimes still got type error on
comment-json
The text was updated successfully, but these errors were encountered: