de23842e45
* Allow import assertions on esm imports under module: nodenext * Changes to copy Co-authored-by: Andrew Branch <andrew@wheream.io>
34 lines
2.6 KiB
Plaintext
34 lines
2.6 KiB
Plaintext
tests/cases/conformance/importAssertion/1.ts(1,22): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
|
tests/cases/conformance/importAssertion/1.ts(2,28): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
|
tests/cases/conformance/importAssertion/1.ts(3,21): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
|
tests/cases/conformance/importAssertion/1.ts(4,27): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
|
tests/cases/conformance/importAssertion/2.ts(1,28): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
|
tests/cases/conformance/importAssertion/2.ts(2,38): error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
|
|
|
|
|
==== tests/cases/conformance/importAssertion/0.ts (0 errors) ====
|
|
export const a = 1;
|
|
export const b = 2;
|
|
|
|
==== tests/cases/conformance/importAssertion/1.ts (4 errors) ====
|
|
export {} from './0' assert { type: "json" }
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
|
export { a, b } from './0' assert { type: "json" }
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
|
export * from './0' assert { type: "json" }
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
|
export * as ns from './0' assert { type: "json" }
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
|
|
|
==== tests/cases/conformance/importAssertion/2.ts (2 errors) ====
|
|
export { a, b } from './0' assert {}
|
|
~~~~~~~~~
|
|
!!! error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
|
export { a as c, b as d } from './0' assert { a: "a", b: "b", c: "c" }
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
!!! error TS2821: Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'.
|
|
|