rauniorooR
Deno3y ago
1 reply
raunioroo

LSP complains about missing package mongodb

VS Code keeps complaining about "uncached or missing npm package: mongodb". Cache "npm:mongodb" and it's dependencies Quick fix action does not help, neither does deno cache --reload npm:mongodb. The script works flawlessly with
deno run
, it's just VSCode/LSP that does seem to struggle with the package.

There seem to be a lot of identical related entries in the Deno LSP output: Could not set npm package requirements. Error getting response at https://registry.npmjs.org/encoding for package "encoding": An npm specifier not found in cache: "encoding", --cached-only is specified. (for example attempting to cache npm:mongodb via Quick fix makes the LSP print out these)
image.png
image.png
Was this page helpful?