Skip to content

VS 2017 RC solution analysis does not respect tsconfig.json "types" property (shows errors) #12330

Closed
@jasonswearingen

Description

@jasonswearingen

TypeScript Version: VS 2017 RC, Community Edition

Code
open a project that uses the tsconfig.json "types" property, such as

    "types": ["node", "mocha"],

and vs 2017 RC shows errors such as

Error	TS2307	Cannot find module 'assert'.	xlib (tsconfig project)	C:\repos\stage4\xlib\src\logging.ts	12	Active

Expected behavior:
tsc compiles the project fine. also opening the project in VS2015 with NodeJs tools works fine.

Actual behavior:
vs 2017 RC shows intellisense errors in the error list. building ctrl-shift-b works fine and no errors are shown.

Repo Steps*
download the xlib project from https://github.com/Novaleaf/xlib and open it in VS2017 RC Community Edition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions