I have a TypeScript file named foo.ts
that contains an exported class called "Foo"
export default class Foo{
}
I am attempting to import this class into another file within the same directory
import {Foo} from './foo';
However, I am encountering an error:
Module '"foo"' has no exported member 'Foo'.
I have searched online for solutions, but the closest thing I found was an unresolved GitHub issue at https://github.com/Microsoft/TypeScript/issues/16475.
Is there something obvious I am missing? Shouldn't this code be valid?