14 lines
No EOL
623 B
Text
14 lines
No EOL
623 B
Text
==== tests/cases/compiler/importDeclRefereingExternalModuleWithNoResolve.ts (4 errors) ====
|
|
import b = require("externalModule");
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! Cannot compile external modules unless the '--module' flag is provided.
|
|
~~~~~~~~~~~~~~~~
|
|
!!! Cannot find external module 'externalModule'.
|
|
declare module "m1" {
|
|
~~~~
|
|
!!! Ambient external modules cannot be nested in other modules.
|
|
import im2 = require("externalModule");
|
|
~~~~~~~~~~~~~~~~
|
|
!!! Cannot find external module 'externalModule'.
|
|
}
|
|
|