You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/importer-cts.cts(10,10): error TS2614: Module '"./exporter.mjs"' has no exported member 'Oops'. Did you mean to use 'import Oops from "./exporter.mjs"' instead?
2
+
3
+
4
+
==== /importer-cjs.cjs (0 errors) ====
5
+
const Foo = require("./exporter.mjs");
6
+
new Foo();
7
+
8
+
==== /importer-cts.cts (1 errors) ====
9
+
import Foo = require("./exporter.mjs");
10
+
new Foo();
11
+
12
+
import Foo2 from "./exporter.mjs";
13
+
new Foo2();
14
+
15
+
import * as Foo3 from "./exporter.mjs";
16
+
new Foo3();
17
+
18
+
import { Oops } from "./exporter.mjs";
19
+
~~~~
20
+
!!! error TS2614: Module '"./exporter.mjs"' has no exported member 'Oops'. Did you mean to use 'import Oops from "./exporter.mjs"' instead?
/importer-cjs.cjs(2,5): error TS2351: This expression is not constructable.
2
+
Type 'String' has no construct signatures.
3
+
/importer-cts.cts(2,5): error TS2351: This expression is not constructable.
4
+
Type 'String' has no construct signatures.
5
+
/importer-cts.cts(4,8): error TS1259: Module '"/exporter"' can only be default-imported using the 'esModuleInterop' flag
6
+
/importer-cts.cts(8,5): error TS2351: This expression is not constructable.
7
+
Type 'String' has no construct signatures.
8
+
/importer-cts.cts(10,10): error TS2614: Module '"./exporter.mjs"' has no exported member 'Oops'. Did you mean to use 'import Oops from "./exporter.mjs"' instead?
9
+
10
+
11
+
==== /importer-cjs.cjs (1 errors) ====
12
+
const Foo = require("./exporter.mjs");
13
+
new Foo();
14
+
~~~
15
+
!!! error TS2351: This expression is not constructable.
16
+
!!! error TS2351: Type 'String' has no construct signatures.
17
+
18
+
==== /importer-cts.cts (4 errors) ====
19
+
import Foo = require("./exporter.mjs");
20
+
new Foo();
21
+
~~~
22
+
!!! error TS2351: This expression is not constructable.
23
+
!!! error TS2351: Type 'String' has no construct signatures.
24
+
25
+
import Foo2 from "./exporter.mjs";
26
+
~~~~
27
+
!!! error TS1259: Module '"/exporter"' can only be default-imported using the 'esModuleInterop' flag
28
+
new Foo2();
29
+
30
+
import * as Foo3 from "./exporter.mjs";
31
+
new Foo3();
32
+
~~~~
33
+
!!! error TS2351: This expression is not constructable.
34
+
!!! error TS2351: Type 'String' has no construct signatures.
35
+
36
+
import { Oops } from "./exporter.mjs";
37
+
~~~~
38
+
!!! error TS2614: Module '"./exporter.mjs"' has no exported member 'Oops'. Did you mean to use 'import Oops from "./exporter.mjs"' instead?
0 commit comments