KevinKreps
KevinKreps•2w ago

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 🫠
No description
No description
No description
No description
8 Replies
bartlomieju
bartlomieju•2w ago
What's inside you deno.json?
KevinKreps
KevinKrepsOP•2w ago
@bartlomieju { "imports": {} }
bartlomieju
bartlomieju•2w ago
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?
KevinKreps
KevinKrepsOP•2w ago
@bartlomieju hope this is giving the relevant info. It looks all good to my untrained eye 😄
No description
bartlomieju
bartlomieju•2w ago
Not really -> try Cmd + P and type Deno: Language Server Status - it will be a huge output, please paste it to a gist
KevinKreps
KevinKrepsOP•2w ago
https://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
bartlomieju
bartlomieju•2w ago
@nayeemrmn can you help me debug this one?
KevinKreps
KevinKrepsOP•3d ago
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

Did you find this page helpful?