question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why vs code doesn't show types for Deno

See original GitHub issue

I’ve installed this plugin, but when I try to write code, for example:

console.log(Deno.readDirSync("."));

vs code shows me an error: Cannot find name ‘Deno’.ts(2304) I use built-in version of TypeScript. Do I need to download types somehow?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:19

github_iconTop GitHub Comments

3reactions
jbergantcommented, Jun 4, 2020

Hi @buttercubz , @filburt-turle finally, it’s working for me. I downloaded lib.deno.d.ts file, then I restarted the typescript server, restarted mac and it worked! Thanks for the tips 😃

3reactions
niyarlatotepcommented, Jun 3, 2020

@jbergant as temporary fix you can try to copy lib.deno.d.ts and lib.webworker.d.ts from ~/.vscode/extensions/denoland.vscode-deno-1.24.0/node_modules/typescript-deno-plugin/lib to $HOME/Library/Caches/deno as I mentioned before, but I’m not sure about Mac OS paths you can try. It worked for me on Windows

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using Visual Studio Code | Manual - Deno
We realize that not every project you might edit with vscode is a Deno project. By default, vscode comes with a built-in TypeScript/JavaScript...
Read more >
Deno: VS Code typescript doesnt know ES6 - Stack Overflow
I am building an app with deno and typescript. As my IDE I'm using VS Code. When I'm trying to use modern javascript...
Read more >
Deno IntelliSense on Visual Studio Code - Alhaqi
Open the project in VS Code and try opening main_test.ts file. You will Vs Code is throwing errors because they don't support Deno...
Read more >
How to Debug Deno in VS Code - YouTube
Settings for Debugging Deno in VS CodeTwitter: https://twitter.com/BarelyDanielGithub: https://github.com/danba340/ deno - vscode -debug.
Read more >
Visual Studio Code plugin for Deno - Morioh
NOTE: Since deno lint is still an experimental feature, you need to set deno.unstable = true in your VS Code settings. This function...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found