Skip to content

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

Closed
@zpdDG4gta8XKpMCd

Description

@zpdDG4gta8XKpMCd

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'.

Metadata

Metadata

Assignees

No one assigned

    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