I encountered this error:
"/Users/robot/code/slg-fe/src/app/leaderboards/leaderboards.component.ts (2,10): Module '"/Users/robot/code/slg-fe/src/app/leaderboards/leaderboard"' has no exported member 'Leaderboard'.
This is what my leaderboard.ts file looks like:
export interface Leaderboard {
id: number,
username: string,
rank_elo: number,
role: number,
total_wins: number,
kda: number,
yesterday_rank: number
}
And here is my leaderboard.component.ts file:
import { Component } from '@angular/core';
import { Leaderboard } from './leaderboard';
@Component({
selector: 'leaderboards',
templateUrl: './leaderboards.component.html'
})
export class LeaderboardsComponent { }
The export in my leaderboard.ts file explicitly exports a Leaderboard interface. However, the error persists. Any idea why?