Deno LSP gives no-cache-npm for npm: imports #7642
Replies: 4 comments 3 replies
-
I have the same error in the log. The LSP is working, but |
Beta Was this translation helpful? Give feedback.
-
For whatever reason
Edit: Issue is still happening. See below. |
Beta Was this translation helpful? Give feedback.
-
Okay, nope, I'm seeing this again. Deno 1.35.3 (released 4 days ago). Same behaviour. On startup, diagnostics show:
-until I modify the buffer, then it gets picked up and the diagnostic error goes away. This time I'm using an import map in deno.json, but the first time I wasn't so I don't think that has anything to do with it. |
Beta Was this translation helpful? Give feedback.
-
I'm on Deno 1.37.0 and ran into this issue. If it helps anyone, I was able to make the error go away by running
ETA: If it matters, this was a vanilla JS project running with the deno-lsp |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
The Deno LSP is giving me an error for
npm:
imports, which doesn't happen in VS Code. If you modify the buffer at all, e.g. add a blank line, the LSP error goes away and everything is fine.I have the following configuration in the project's
.helix/languages.toml
file:I have the following imports:
If I import from esm.sh instead, there is no problem:
Reproduction Steps
No response
Helix log
Platform
Linux
Terminal Emulator
alacritty
Helix Version
23.05-47-gd3cca0f3
Beta Was this translation helpful? Give feedback.
All reactions