// ./b.ts
function foo() {
}
export = foo;
// ./a.ts
import * as b from "./b";
b;
// tsconfig.json
{
"compilerOptions": {
"moduleResolution": "node",
"outDir": "lib"
},
"include": [
"./a.ts"
]
}
Expected:
ECMAScript imports can only reference an 'export =' declaration with the 'esModuleInterop' flag enabled and by using default imports.
Actual:
Module '"./b"' resolves to a non-module entity and cannot be imported using this construct.
Expected:
Actual: