Skip to content

problem with referencing external modules in 1.6.0-dev.20150818 #4365

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

Closed
zpdDG4gta8XKpMCd opened this issue Aug 19, 2015 · 0 comments
Closed
Labels
Bug A bug in TypeScript Fixed A PR has been merged for this issue

Comments

@zpdDG4gta8XKpMCd
Copy link

a.ts

export var c = '';

b.ts

import a = require('./a');

tsconfig.json

{
    "files": [
        "./a.ts",
        "./b.ts"
    ]
}
node ./node_modules/typescript/lib/tsc.js --outDir ./commonjs --module commonjs --target es5 --declaration --noResolve --noEmitOnError --noImplicitAny

gives:

b.ts(1,20): error TS2307: Cannot find module './a'.
@vladima vladima added the Bug A bug in TypeScript label Aug 19, 2015
@vladima vladima self-assigned this Aug 19, 2015
@mhegazy mhegazy added this to the TypeScript 1.6 milestone Aug 19, 2015
@vladima vladima added the Fixed A PR has been merged for this issue label Aug 20, 2015
@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

3 participants