Skip to content

[BUG]: fix(frontend): resolve TypeScript compilation errors during npm run build #547

Description

@piyushrajpandit

Bug Description

When setting up the project locally and attempting to build the frontend production bundle (cd frontend && npm run build), the build fails due to multiple TypeScript compilation errors and type mismatches.

Steps to Reproduce

  1. Clone the repository: git clone https://github.com/AOSSIE-Org/DebateAI.git
  2. Navigate to frontend: cd DebateAI/frontend
  3. Install dependencies: npm install
  4. Run build command: npm run build

Logs and Screenshots

src/services/teamDebateService.ts(172,15): error TS2552: Cannot find name 'MatchmakingPoolResponse'. Did you mean 'TeamMatchmakingPoolResponse'?
src/Pages/Game.tsx(256,20): error TS2345: Type 'number' is not assignable to type 'boolean' (points property type conflict).
src/Pages/TeamDebateRoom.tsx(2209,13): error TS2322: Property 'liveTranscript' does not exist on type 'SpeechTranscriptsProps'.
src/components/CommentTree.tsx(7,3): error TS6133: 'commentsByTranscriptAtom' is declared but its value is never read.

Environment Details

No response

Impact

Critical - Application is unusable

Code of Conduct

  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions