npm specifier not found in LSP only, and so no types for certain imports
It seems to be unfixable(via cache reload, deno info, reboot, rm -rf ~/.cache/deno, ext.), so right now the LSP is unusable and I'm writing JS with no types.
deno run
deno run
,
deno check
deno check
,
deno info
deno info
and
deno cache --reload
deno cache --reload
, all run without error and don't complain about the missing specifier like in the LSP.
e.g. importing
drizzle-orm
drizzle-orm
and no types are available. output I see when I run cache and it's dependencies:
Could not set npm package requirements. Error getting response at https://registry.npmjs.org/@types/node for package "@types/node": An npm specifier not found in cache: "@types/node", --cached-only is specified.
Could not set npm package requirements. Error getting response at https://registry.npmjs.org/@types/node for package "@types/node": An npm specifier not found in cache: "@types/node", --cached-only is specified.
but before I saw:
Could not set npm package requirements. Error getting response at https://registry.npmjs.org/@turf/turf for package "@turf/turf": An npm specifier not found in cache: "@turf/turf", --cached-only is specified
Could not set npm package requirements. Error getting response at https://registry.npmjs.org/@turf/turf for package "@turf/turf": An npm specifier not found in cache: "@turf/turf", --cached-only is specified
so it seems to be random?
I also tried downgrading deno to 1.42.4 and explicitly caching missing packages via the cli and via adding them to deno.json. nothing worked, lsp remains unusable. anyone has any idea?