Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global augmentation should not be resolved as modules #11754

Closed
mhegazy opened this issue Oct 20, 2016 · 0 comments
Closed

global augmentation should not be resolved as modules #11754

mhegazy opened this issue Oct 20, 2016 · 0 comments
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Oct 20, 2016

// a.ts
export { };

declare global {
  var x: number;
}
tsc --traceResolution c:\test\a.ts

======== Resolving module 'global' from 'c:/test/a.ts'. ========
Module resolution kind is not specified, using 'NodeJs'.
Loading module 'global' from 'node_modules' folder.
File 'c:/test/node_modules/global.ts' does not exist.
File 'c:/test/node_modules/global.tsx' does not exist.
File 'c:/test/node_modules/global.d.ts' does not exist.
File 'c:/test/node_modules/global/package.json' does not exist.
File 'c:/test/node_modules/global/index.ts' does not exist.
File 'c:/test/node_modules/global/index.tsx' does not exist.
File 'c:/test/node_modules/global/index.d.ts' does not exist.
File 'c:/test/node_modules/@types/global.ts' does not exist.
File 'c:/test/node_modules/@types/global.tsx' does not exist.
File 'c:/test/node_modules/@types/global.d.ts' does not exist.
File 'c:/test/node_modules/@types/global/package.json' does not exist.
File 'c:/test/node_modules/@types/global/index.ts' does not exist.
File 'c:/test/node_modules/@types/global/index.tsx' does not exist.
File 'c:/test/node_modules/@types/global/index.d.ts' does not exist.
File 'c:/node_modules/global.ts' does not exist.
File 'c:/node_modules/global.tsx' does not exist.
File 'c:/node_modules/global.d.ts' does not exist.
File 'c:/node_modules/global/package.json' does not exist.
File 'c:/node_modules/global/index.ts' does not exist.
File 'c:/node_modules/global/index.tsx' does not exist.
File 'c:/node_modules/global/index.d.ts' does not exist.
File 'c:/node_modules/@types/global.ts' does not exist.
File 'c:/node_modules/@types/global.tsx' does not exist.
File 'c:/node_modules/@types/global.d.ts' does not exist.
File 'c:/node_modules/@types/global/package.json' does not exist.
File 'c:/node_modules/@types/global/index.ts' does not exist.
File 'c:/node_modules/@types/global/index.tsx' does not exist.
File 'c:/node_modules/@types/global/index.d.ts' does not exist.
======== Module name 'global' was not resolved. ========
@mhegazy mhegazy added the Bug A bug in TypeScript label Oct 20, 2016
@mhegazy mhegazy self-assigned this Oct 20, 2016
@mhegazy mhegazy added this to the TypeScript 2.1 milestone Oct 20, 2016
@mhegazy mhegazy assigned yuit and unassigned mhegazy Oct 27, 2016
@mhegazy mhegazy modified the milestones: TypeScript 2.1, TypeScript 2.1.2 Oct 27, 2016
@yuit yuit added the Fixed A PR has been merged for this issue label Nov 9, 2016
@mhegazy mhegazy closed this as completed Nov 10, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants