Miroslav Radojević
Miroslav Radojević

Reputation: 517

Visual Studio 2015 fails at opening java script files after TypeScript installment

The project contains both c# and javascript source code. And I use visual studio 2015 (3) for the development. Since installing the TypeScipt 2.0.3 I cannot open the .js source files in editor. The message that pops up is: An error occurred trying to load the page.

No exports were found that match the constraint: ContractName Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptProjectProvider RequiredTypeIdentity Microsoft.CodeAnalysis.Editor.TypeScript.ScriptContexts.ITypeScriptProjectProvider

And it is also appearing in the TypeScript Build tab under solution properties.

Has anyone experienced the same issue or has any ideas on how to solve this? I'd like to edit the .js files in Visual Studio.

Upvotes: 2

Views: 1260

Answers (2)

Swarnakamal Mishra
Swarnakamal Mishra

Reputation: 1

Delete the following folder and restart Visual studio.

C:\Users\yourusername\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache

N.B. : The AppData folder may not appear on the first place. Unhide all hidden items from View tab and then follow the path.

Upvotes: 0

Yatharth Varshney
Yatharth Varshney

Reputation: 2103

Try deleting the folder

"C:\Users\<userName>\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache"

and then restart Visual Studio. This worked for me.

Upvotes: 8

Related Questions