Skip to content

When folder has two files with the same name but one is .d.ts, the modules declared on the latter are not recognized #7624

@rcazangi

Description

@rcazangi

TypeScript Version:
1.8.6

Folder is called Editors and contains several files including: editors.ts and editors.d.ts

editors.d.ts looks like this:
declare module "text!./editors.template.html" { }
declare module "text!./condition.template.html" { }

It turns out that none of those modules are recognized by other ts files in the same folder. Now, if I rename editors.d.ts to anything else, problem solved!

Issue was seen in Visual Studio 2015.

Metadata

Metadata

Assignees

No one assigned

    Labels

    By DesignDeprecated - use "Working as Intended" or "Design Limitation" insteadQuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions