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.

After installing coc-deno JavaScript files give TypeScript errors

See original GitHub issue

file.js

const fn = (arg) => undefined;

I get the error:

Error [tsserver 7006] Parameter 'arg' implicitly has an 'any' type.

When running:

yarn tsc --allowJs --noEmit file.js No implicit any error, and why would there be? This is a JS file.

Any idea how I could get back to tsserver checking js files but without giving me errors that only apply to ts files?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
fannheywardcommented, May 18, 2020

You should disable this extension for non-deno project. Same issue #7.

0reactions
alextescommented, Jul 18, 2020

@pheuberger did you try uninstalling coc-deno?

:CocUninstall coc-deno

If you did, and you’re still getting them, it’s not this plugin.

On the odd chance that it still is something this plugin did I suppose you could always clear out your coc folder and reinstall plugins one-by-one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Still getting linting errors when importing with `.ts` extension.
I'm still getting error from tsserver when importing .ts files, ... After installing coc-deno JavaScript files give TypeScript errors #25.
Read more >
Typescript errors in javascript files
I have a file, Tab.jsx (note, it's a javascript file) with the following contents: const Tab = styled.div` {tab styles are here} `...
Read more >
Detect JavaScript errors during compile time using ...
During compile-time TypeScript can emit errors to a terminal, ... Let's create simple file in src folder called app.js and put some code ......
Read more >
TypeScript errors and how to fix them
A list of common TypeScript errors and how to fix them.
Read more >
Setup your environment | Manual
Vim works fairly well for Deno/TypeScript if you install CoC (intellisense engine and language server protocol). After CoC is installed, from inside Vim,...
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