Cannot find name 'Deno'.ts(2304)
I am getting this vscode error even though "deno.enable": true is set in my .vscode/settings.json
I have created a basic project to reproduce. (See screenshots)
Setting the following will make the error disappear from my ide. But this is not a solution.
"typescript.validate.enable": false
Shouldn't "deno.enable": true, handle this properly? What am I missing?
I would be super thankful for any help or hint. I have spent too much time with this already ðŸ«




8 Replies
What's inside you
deno.json?@bartlomieju
{
"imports": {}
}
Can you paste the full screenshot of your VSCode window?
And maybe output of
Deno: Language Server Status that you can select form the command palette?@bartlomieju hope this is giving the relevant info. It looks all good to my untrained eye 😄

Not really -> try Cmd + P and type
Deno: Language Server Status - it will be a huge output, please paste it to a gisthttps://gist.github.com/KevinKreps/74e6b5615b8544430827114257f0a381
Here @bartlomieju Thanks for helping me here!
Gist
Deno Language Server Status for Problem: Cannot find name 'Deno'.ts...
Deno Language Server Status for Problem: Cannot find name 'Deno'.ts(2304) - gist:74e6b5615b8544430827114257f0a381
@nayeemrmn can you help me debug this one?
By any chance, is this still on your mind? 🙂 I am still struggling with it. It seems like the 2 Language Servers are simply clashing and Deno not properly turning off the TS Language Server