dylanwhittaker
dylanwhittaker

Reputation: 311

VSCode Typescript Version and linter not working

On Visual Studio code IDE I had the following issues:

This is after trying the suggestions from other stackoverflow articles:

And lastly attempting to follow along with VSCodes documentation in order to attempt to fix the problem.

Installing typescript globally did not rectify this issue either.

Upvotes: 2

Views: 1353

Answers (4)

type-face
type-face

Reputation: 1

I had the same issue and discovered that at some point I had disabled the @builtin TypeScript and JavaScript Language Features. Enabling it again fixed the issue.

Upvotes: 0

adzza24
adzza24

Reputation: 2084

Looks like your root folder in VSCode has to be the one containing node_modules folder in order for it to recognize that you have a workspace verions of typescript.

And if the command is missing from your palette, its probably because you are not in a typescript file. Open a ts file and then search the command palette again.

Upvotes: 0

szx
szx

Reputation: 243

I found myself in a similar situation, except other projects worked. The solution in my case was to search for the @builtin typescript extension and choose "Enable (Workspace)" from the contextual menu ("Enable" is grayed out). Still not sure why it was disabled for this project.

Upvotes: 2

dylanwhittaker
dylanwhittaker

Reputation: 311

So I managed to solve my issue by completely uninstalling VS Code, getting the latest version and installing it. steps:

Windows:

  1. Control panel > Uninstall a program > VSCode
  2. Delete directory C:\Users{user}\AppData\Roaming\Code
  3. Delete directory C:\Users{user}.vscode
  4. Download and install latest from: https://code.visualstudio.com/

Success!

Upvotes: 1

Related Questions