Skip to content

[Bug]: Fronted build errors in v0.16.4.7 #803

@tomfrenzel

Description

@tomfrenzel

Bug Description

Building the Fronted in v.0.16.4.7 does not succeed because of build errors

Steps to Reproduce

Steps to reproduce the behavior:

  1. run npm run build inside SparkyFitnessFrontend
  2. See errors

Expected Behavior

There should not be any errors

Actual Behavior

npm run build

> sparkyfitnessfrontend@0.16.4.7 build
> tsc -b && vite build

src/api/Exercises/exerciseEntryService.ts:254:12 - error TS2304: Cannot find name 'ExerciseProgressData'.

254 ): Promise<ExerciseProgressData[]> => {
               ~~~~~~~~~~~~~~~~~~~~

src/api/Exercises/exerciseEntryService.ts:267:31 - error TS2304: Cannot find name 'ExerciseProgressData'.

267   return response.map((entry: ExerciseProgressData) => ({
                                  ~~~~~~~~~~~~~~~~~~~~

src/pages/Settings/CalculationSettings.tsx:45:38 - error TS2307: Cannot find module '@/hooks/Diary/useDiaryInvalidation' or its corresponding type declarations.

45 import { useDiaryInvalidation } from '@/hooks/Diary/useDiaryInvalidation';
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/pages/Settings/CalculationSettings.tsx:73:35 - error TS2304: Cannot find name 'useDailyProgressInvalidation'.

73   const invalidateDailyProgress = useDailyProgressInvalidation();
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Found 4 errors.

Additional Context

The build with the main version is working, just the release version is not. I'm not sure how the docker build for the official image could have succeeded building the released version 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions