microsoft / microsoft/reflect-metadata

Module augmentation cannot introduce new names in the top level scope

Open
#66 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
3.4k
Forks
190
Avg merge
13h 52m
Merged PRs (30d)
1

Description

I have a Typescript compiler error coming from reflect-metadata's index.d.ts

"Module augmentation cannot introduce new names in the top level scope"

image

I am using version 0.1.10 and Typescript 1.8.7. I'm not in a position to upgrade Typescript yet, but I'm confused because I'm sure I never had this problem before with the same versions.

Can you think of anything else that could affect this?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with reflect-metadata's index.d.ts and reproduce the error using TypeScript 1.8.7 and reflect-metadata 0.1.10. Compare the declaration with the module-augmentation rules for that compiler version and determine what changed from the previously working setup; done means identifying a confirmed cause and a compatible correction or workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.