Reputation: 311
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
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
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
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
Reputation: 311
So I managed to solve my issue by completely uninstalling VS Code, getting the latest version and installing it. steps:
Windows:
Success!
Upvotes: 1