|
1 |
| -tests/cases/conformance/node/allowJs/index.cjs(2,21): error TS1445: Module './index.js' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
2 |
| -tests/cases/conformance/node/allowJs/index.cjs(3,21): error TS1445: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
3 |
| -tests/cases/conformance/node/allowJs/index.cjs(6,21): error TS1445: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
4 |
| -tests/cases/conformance/node/allowJs/index.cjs(9,21): error TS1445: Module './subfolder2/index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
5 |
| -tests/cases/conformance/node/allowJs/index.cjs(11,22): error TS1445: Module './subfolder2/another/index.js' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
6 |
| -tests/cases/conformance/node/allowJs/index.cjs(12,22): error TS1445: Module './subfolder2/another/index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
| 1 | +tests/cases/conformance/node/allowJs/index.cjs(2,21): error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
| 2 | +tests/cases/conformance/node/allowJs/index.cjs(3,21): error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
| 3 | +tests/cases/conformance/node/allowJs/index.cjs(6,21): error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
| 4 | +tests/cases/conformance/node/allowJs/index.cjs(9,21): error TS1471: Module './subfolder2/index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
| 5 | +tests/cases/conformance/node/allowJs/index.cjs(11,22): error TS1471: Module './subfolder2/another/index.js' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
| 6 | +tests/cases/conformance/node/allowJs/index.cjs(12,22): error TS1471: Module './subfolder2/another/index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
7 | 7 |
|
8 | 8 |
|
9 | 9 | ==== tests/cases/conformance/node/allowJs/subfolder/index.js (0 errors) ====
|
@@ -74,27 +74,27 @@ tests/cases/conformance/node/allowJs/index.cjs(12,22): error TS1445: Module './s
|
74 | 74 | // ESM format imports below should error
|
75 | 75 | import * as m1 from "./index.js";
|
76 | 76 | ~~~~~~~~~~~~
|
77 |
| -!!! error TS1445: Module './index.js' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
| 77 | +!!! error TS1471: Module './index.js' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
78 | 78 | import * as m2 from "./index.mjs";
|
79 | 79 | ~~~~~~~~~~~~~
|
80 |
| -!!! error TS1445: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
| 80 | +!!! error TS1471: Module './index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
81 | 81 | import * as m3 from "./index.cjs";
|
82 | 82 | import * as m4 from "./subfolder/index.js";
|
83 | 83 | import * as m5 from "./subfolder/index.mjs";
|
84 | 84 | ~~~~~~~~~~~~~~~~~~~~~~~
|
85 |
| -!!! error TS1445: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
| 85 | +!!! error TS1471: Module './subfolder/index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
86 | 86 | import * as m6 from "./subfolder/index.cjs";
|
87 | 87 | import * as m7 from "./subfolder2/index.js";
|
88 | 88 | import * as m8 from "./subfolder2/index.mjs";
|
89 | 89 | ~~~~~~~~~~~~~~~~~~~~~~~~
|
90 |
| -!!! error TS1445: Module './subfolder2/index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
| 90 | +!!! error TS1471: Module './subfolder2/index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
91 | 91 | import * as m9 from "./subfolder2/index.cjs";
|
92 | 92 | import * as m10 from "./subfolder2/another/index.js";
|
93 | 93 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
94 |
| -!!! error TS1445: Module './subfolder2/another/index.js' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
| 94 | +!!! error TS1471: Module './subfolder2/another/index.js' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
95 | 95 | import * as m11 from "./subfolder2/another/index.mjs";
|
96 | 96 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
97 |
| -!!! error TS1445: Module './subfolder2/another/index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
| 97 | +!!! error TS1471: Module './subfolder2/another/index.mjs' cannot be imported using this construct. The specifier only resolves to an es module, which cannot be imported synchronously. Use dynamic import instead. |
98 | 98 | import * as m12 from "./subfolder2/another/index.cjs";
|
99 | 99 | void m1;
|
100 | 100 | void m2;
|
|
0 commit comments