mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
1.2 KiB
Plaintext
18 lines
1.2 KiB
Plaintext
esnextmodulekindWithES5Target10.ts(1,1): error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.
|
|
esnextmodulekindWithES5Target10.ts(1,20): error TS2307: Cannot find module 'mod' or its corresponding type declarations.
|
|
esnextmodulekindWithES5Target10.ts(6,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.
|
|
|
|
|
|
==== esnextmodulekindWithES5Target10.ts (3 errors) ====
|
|
import i = require("mod"); // Error;
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS1202: Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.
|
|
~~~~~
|
|
!!! error TS2307: Cannot find module 'mod' or its corresponding type declarations.
|
|
|
|
|
|
namespace N {
|
|
}
|
|
export = N; // Error
|
|
~~~~~~~~~~~
|
|
!!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead. |