Skip to content

tsc --build mode: tsc crashes in situation involving global module augmentations #25339

Closed
@yortus

Description

@yortus

TypeScript Version: 3.0.0-dev.20180630

Search Terms:
build mode, crash

Steps to Reproduce:

Set up @RyanCavanaugh's learn-a sample repo as per his instructions. Now run lerna add @types/multer to add multer typings to all three packages. Run tsc -b packages --forceto confirm it still builds fine. Now add the following line to pkg1/src/index.ts:

export {Options} from 'multer';

Run tsc -b packages --force again.

Expected behavior:

Builds successfully.

Actual behavior:

tsc crashes due to a violated assertion. I looked briefly at the stack trace and assertion, and it seems to be something to do with the global augmentation of the Express namespace.

Related Issues:

Originally reported in #3469 (comment).

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