When attempting to use the import feature in my Typescript code, I encountered an error upon opening it in Firefox:
"Loading failed for the module with source flashcard"
The import statement in my file is like this
import Flashcard from "./flashcard"
Here is what the flashcard file contains:
export default class FlashCard {
front: string;
back: string;
constructor(front:string, back:string)
{
this.front = front;
this.back = back;
}
}
I have checked the network tab but it appears to be empty.