mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
--- old.importNonExportedMember7.errors.txt
|
|
+++ new.importNonExportedMember7.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
a.ts(2,1): error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.
|
|
b.ts(1,10): error TS2595: 'Foo' can only be imported by using a default import.
|
|
-b.ts(1,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export.
|
|
|
|
|
|
==== a.ts (1 errors) ====
|
|
@@= skipped -8, +7 lines =@@
|
|
~~~~~~~~~~~~~
|
|
!!! error TS1203: Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.
|
|
|
|
-==== b.ts (2 errors) ====
|
|
+==== b.ts (1 errors) ====
|
|
import { Foo } from './a';
|
|
~~~
|
|
!!! error TS2595: 'Foo' can only be imported by using a default import.
|
|
- ~~~~~
|
|
-!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'allowSyntheticDefaultImports' flag and referencing its default export.
|