I have a module called _M01.ts with the following structure:
export module _M01 {
export default class Foo {
constructor () {}
}
}
However, when attempting to import this module in my _M02.ts file, I encounter the error message below:
import Foo from "./_M01"; // error "./_M01" has no default export
Could this issue be related to my IDE, a TypeScript compiler error, or simply a misunderstanding on my part?