Evaldas_B
Evaldas_B•2mo ago

TypeScript(Deno) unable to find types

Imports in TypeScript(Deno) are causing errors:
// Cannot find module 'npm:windmill-client@1.415.1' or its corresponding type declarations.(2307)
import * as wmill from "npm:windmill-client@1.415.1"
// Cannot find module 'npm:windmill-client@1.415.1' or its corresponding type declarations.(2307)
import * as wmill from "npm:windmill-client@1.415.1"
This is the same snippet that is provided by default the only difference is that the import is uncommented. Import is cashed so that should not be an issue. Can confirm the same behavior on self-hosted and cloud. The dependencies are actually loaded in and the scripts are running fine. The problem seems to be with TypeScript language server
No description
5 Replies
rubenf
rubenf•2mo ago
it's just a monaco issue that it still has the normal ts resolver you should have autocompletion on wmill regardless you basically have 2 ts assistant, the normal one and the one provided by lsp the normal one has issue resolving the import but not the lsp one as highlighted by "Resolved Dependency" so you can ignore the error /linear make deno web editor not show squiggly lines on resolved npm imports
Evaldas_B
Evaldas_BOP•2mo ago
Oh, makes sense. Am I assuming correctly that this would not be an issue VsCode if I were to spin it up locally?
rubenf
rubenf•2mo ago
correct
Evaldas_B
Evaldas_BOP•2mo ago
Ok, thanks 🙂