Skip to content

Visual Studio 2015 with TS2.0 gives incorrect @types path resolution errors #9662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
falsandtru opened this issue Jul 13, 2016 · 3 comments · Fixed by #9867
Closed

Visual Studio 2015 with TS2.0 gives incorrect @types path resolution errors #9662

falsandtru opened this issue Jul 13, 2016 · 3 comments · Fixed by #9867
Labels
Bug A bug in TypeScript @types Relates to working with .d.ts files (declaration/definition files) from DefinitelyTyped Visual Studio Integration with Visual Studio

Comments

@falsandtru
Copy link
Contributor

@types path resolution and importing is succeeding, but these errors occurred on Visual Studio after a few minutes.

TypeScript Version: 2.0.0 with VS2015

Severity    Code    Description Project File    Line    Suppression State
Error   TS2688  Cannot find type definition file for '[
  "...\\localsocket/node_modules/@types\\empower",
  "...\\localsocket/node_modules/@types\\mocha",
  "...\\localsocket/node_modules/@types\\power-assert",
  "...\\localsocket/node_modules/@types\\power-assert-formatter"
]'. localsocket     1   Active
Error   TS2688  Cannot find type definition file for '[
  "...\\localsocket/node_modules/@types\\empower",
  "...\\localsocket/node_modules/@types\\mocha",
  "...\\localsocket/node_modules/@types\\power-assert",
  "...\\localsocket/node_modules/@types\\power-assert-formatter"
]'. localsocket     1   Active

I'll share this project for repro if necessary.

@yuit yuit added the Bug A bug in TypeScript label Jul 15, 2016
@yuit yuit added this to the TypeScript 2.0.1 milestone Jul 15, 2016
@yuit yuit added the Visual Studio Integration with Visual Studio label Jul 15, 2016
@yuit
Copy link
Contributor

yuit commented Jul 15, 2016

I am able to repo this by simple
import * as m from "mocha"

also just to make sure about the version of VS, I am using 25420.01 Update3 and TypeScript 2.0.0 Beta

@yuit
Copy link
Contributor

yuit commented Jul 15, 2016

Talk with @vladima about the possible fix. We will have to issue fix from managed side

@falsandtru
Copy link
Contributor Author

Thanks for the repro!

@mhegazy mhegazy added the @types Relates to working with .d.ts files (declaration/definition files) from DefinitelyTyped label Jul 19, 2016
@yuit yuit closed this as completed in #9867 Aug 4, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript @types Relates to working with .d.ts files (declaration/definition files) from DefinitelyTyped Visual Studio Integration with Visual Studio
Projects
None yet
4 participants