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.

[tsserver 2304] [E] Cannot find name 'Deno'.

See original GitHub issue

After installing Deno and configuring CoC neovim is showing errors that “[tsserver 2304] [E] Cannot find name ‘Deno’.”

Although completions are working.

Deno tsserver

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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
yaegassycommented, Apr 15, 2021

@Classy-Bear @maheshsundaram

Is there a minimum reproducible procedure?

This is the procedure I tried, coc-deno has no problem and is behaving correctly.


  1. Preparation
mkdir -p /tmp/deno-check
cd /tmp/deno-check
nvim check.ts

The code is this one from the official manual. https://deno.land/manual@v1.9.0/getting_started/first_steps#making-an-http-request

  1. Run:CocCommand deno.initializeWorkspace and checked and <CR>.

DEMO

coc-deno-issue-ok1

1reaction
fannheywardcommented, Oct 26, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

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