mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
18 lines
869 B
Diff
18 lines
869 B
Diff
--- old.importNonExportedMember9.errors.txt
|
|
+++ new.importNonExportedMember9.errors.txt
|
|
@@= skipped -0, +0 lines =@@
|
|
b.js(1,10): error TS2597: 'Foo' can only be imported by using a 'require' call or by using a default import.
|
|
-b.js(1,21): error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
|
|
|
|
|
|
==== a.ts (0 errors) ====
|
|
class Foo {}
|
|
export = Foo;
|
|
|
|
-==== b.js (2 errors) ====
|
|
+==== b.js (1 errors) ====
|
|
import { Foo } from './a';
|
|
~~~
|
|
!!! error TS2597: 'Foo' can only be imported by using a 'require' call or by using a default import.
|
|
- ~~~~~
|
|
-!!! error TS2497: This module can only be referenced with ECMAScript imports/exports by turning on the 'esModuleInterop' flag and referencing its default export.
|