Skip to content

File name '[name].ts' differs from '[name].d.ts' only in casing when using --build #25820

@nicojs

Description

@nicojs

TypeScript Version: 3.1.0-dev.201xxxxx

Search Terms:
build
forceConsistentCasingInFileNames
3.0

Code

Example project: https://github.com/nicojs/typescript-3-build-demo

After npm install, use npm run build (or npx tsc --build src/server).

Expected behavior:

Compile without error.

Actual behavior:

Results in error:

src/server/main.ts:2:26 - error TS1149: File name 'C:/z/github/nicojs/typescript-3-build-demo/src/shared/Customer.ts' differs from already included file name 'C:/z/github/nicojs/typescript-3-build-demo/dist/shared/Customer.d.ts' only in casing.

Related Issues: None that I could find that address this issue.

Metadata

Metadata

Assignees

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