|
| 1 | +tests/cases/conformance/node/other.cts(3,14): error TS2841: The type of this expression cannot be named without a resolution mode assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'. |
| 2 | +tests/cases/conformance/node/other.cts(4,14): error TS2841: The type of this expression cannot be named without a resolution mode assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'. |
| 3 | +tests/cases/conformance/node/other2.cts(3,14): error TS2841: The type of this expression cannot be named without a resolution mode assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'. |
| 4 | + |
| 5 | + |
| 6 | +==== tests/cases/conformance/node/index.ts (0 errors) ==== |
| 7 | + // esm format file |
| 8 | + export {}; |
| 9 | +==== tests/cases/conformance/node/index.mts (0 errors) ==== |
| 10 | + // esm format file |
| 11 | + export {}; |
| 12 | +==== tests/cases/conformance/node/index.cts (0 errors) ==== |
| 13 | + // cjs format file |
| 14 | + export {}; |
| 15 | +==== tests/cases/conformance/node/other.ts (0 errors) ==== |
| 16 | + // esm format file |
| 17 | + export const a = await import("package/cjs"); |
| 18 | + export const b = await import("package/mjs"); |
| 19 | + export const c = await import("package"); |
| 20 | + export const f = await import("inner"); |
| 21 | +==== tests/cases/conformance/node/other2.ts (0 errors) ==== |
| 22 | + // esm format file |
| 23 | + export const d = await import("inner/cjs"); |
| 24 | + export const e = await import("inner/mjs"); |
| 25 | +==== tests/cases/conformance/node/other.mts (0 errors) ==== |
| 26 | + // esm format file |
| 27 | + export const a = await import("package/cjs"); |
| 28 | + export const b = await import("package/mjs"); |
| 29 | + export const c = await import("package"); |
| 30 | + export const f = await import("inner"); |
| 31 | +==== tests/cases/conformance/node/other2.mts (0 errors) ==== |
| 32 | + // esm format file |
| 33 | + export const d = await import("inner/cjs"); |
| 34 | + export const e = await import("inner/mjs"); |
| 35 | +==== tests/cases/conformance/node/other.cts (2 errors) ==== |
| 36 | + // cjs format file, no TLA |
| 37 | + export const a = import("package/cjs"); |
| 38 | + export const b = import("package/mjs"); |
| 39 | + ~ |
| 40 | +!!! error TS2841: The type of this expression cannot be named without a resolution mode assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'. |
| 41 | + export const c = import("package"); |
| 42 | + ~ |
| 43 | +!!! error TS2841: The type of this expression cannot be named without a resolution mode assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'. |
| 44 | + export const f = import("inner"); |
| 45 | +==== tests/cases/conformance/node/other2.cts (1 errors) ==== |
| 46 | + // cjs format file, no TLA |
| 47 | + export const d = import("inner/cjs"); |
| 48 | + export const e = import("inner/mjs"); |
| 49 | + ~ |
| 50 | +!!! error TS2841: The type of this expression cannot be named without a resolution mode assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'. |
| 51 | +==== tests/cases/conformance/node/node_modules/inner/index.d.ts (0 errors) ==== |
| 52 | + // cjs format file |
| 53 | + export const cjsMain = true; |
| 54 | +==== tests/cases/conformance/node/node_modules/inner/index.d.mts (0 errors) ==== |
| 55 | + // esm format file |
| 56 | + export const esm = true; |
| 57 | +==== tests/cases/conformance/node/node_modules/inner/index.d.cts (0 errors) ==== |
| 58 | + // cjs format file |
| 59 | + export const cjsNonmain = true; |
| 60 | +==== tests/cases/conformance/node/package.json (0 errors) ==== |
| 61 | + { |
| 62 | + "name": "package", |
| 63 | + "private": true, |
| 64 | + "type": "module", |
| 65 | + "exports": { |
| 66 | + "./cjs": "./index.cjs", |
| 67 | + "./mjs": "./index.mjs", |
| 68 | + ".": "./index.js" |
| 69 | + } |
| 70 | + } |
| 71 | +==== tests/cases/conformance/node/node_modules/inner/package.json (0 errors) ==== |
| 72 | + { |
| 73 | + "name": "inner", |
| 74 | + "private": true, |
| 75 | + "exports": { |
| 76 | + "./cjs": "./index.cjs", |
| 77 | + "./mjs": "./index.mjs", |
| 78 | + ".": "./index.js" |
| 79 | + } |
| 80 | + } |
0 commit comments