T O M
T O M10mo ago

Cannot find name 'Deno'.ts(2304)

Hello, I am using VS Code and Typescript and I have this error. I have downloaded the latest extension as well as the CLI. I have the latest Typecript version as well. I have also enabled Dino in my workspace. Thanks for your help.
No description
7 Replies
marvinh.
marvinh.10mo ago
Does running the Deno: enable command help in vs code? It looks like it's not active as errors thrown by Deno are marked as deno-ts(<number>) instead of ts(<number>) like in your screenshot
T O M
T O MOP10mo ago
@marvinh. it doesn’t help It’s strange because when I ctrl click on Deno I can go to definition But typescript still shows the error
marvinh.
marvinh.10mo ago
Yeah it's strange that the built-in TypeScript language server is still active. I'm too familiar with the internals of the deno lsp, maybe @nayeemrmn can take a look
T O M
T O MOP10mo ago
@marvinh. Problem fixed, I had to disavle typescript syntax linting in my settings
nayeemrmn
nayeemrmn10mo ago
For future reference, can you tell me what the name of that setting is?
T O M
T O MOP10mo ago
No description
T O M
T O MOP10mo ago
@nayeemrmn yes!

Did you find this page helpful?