[tsserver 2304] [E] Cannot find name 'Deno'.
See original GitHub issueAfter installing Deno and configuring CoC neovim is showing errors that “[tsserver 2304] [E] Cannot find name ‘Deno’.”
Although completions are working.
arch@9d46dd2d-1178-ce83-cbc4-d396e4a24060 ~/g/denolearning Γ¥»Γ¥»Γ¥» deno --version
deno 1.7.5 (release, x86_64-unknown-linux-gnu)
v8 9.0.123
typescript 4.1.4
arch@9d46dd2d-1178-ce83-cbc4-d396e4a24060 ~/g/denolearning Γ¥»Γ¥»Γ¥» cat ~/.config/nvim/coc-settings.json Γ£ÿ 130
{
"deno.enable": true,
"deno.lint": true,
"deno.unstable": true,
"deno.config": "/home/arch/.tsconfig.json"
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:19 (8 by maintainers)
Top Results From Across the Web
TypeScript getting error TS2304: cannot find name ' require'
I am getting the error "TS2304: Cannot find name 'require' " when I attempt to transpile a simple TypeScript Node.js page. I have...
Read more >React Typescript "Cannot find name" error [Solved] | bobbyhadz
The issue in the code sample is that our file has a .ts extension and we're writing JSX code in it. This is...
Read more >Using Visual Studio Code | Manual - Deno
In this section we are going to go into depth about developing Deno ... like An import path cannot end with a '.ts'...
Read more >ES5 only and missing `Deno` global : WEB-47160 - YouTrack
Deno: Cannot find name 'RegExp'. It's also very hard to pinpoint the exact cause for this. One second it works fine, the next...
Read more >[Deprecated] Deno - Visual Studio Marketplace
Get official 'denoland/vscode-deno' extension from the VS Code Marketplace. ... But TypeScript can not find the module from URLs.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Classy-Bear @maheshsundaram
Is there a minimum reproducible procedure?
This is the procedure I tried,
coc-deno
has no problem and is behaving correctly.:CocCommand deno.initializeWorkspace
and checked and<CR>
.DEMO
@igorbrasileiro I don’t think we can use these extensions with coc-deno or Deno LSP, cause
typescript-styled-plugin
etc plugins can only work as TypeScript plugins with tsconfig.json.