Xum
Xum
HHomarr
Created by Xum on 10/21/2023 in #💬・get-help
Build from source issues
yes got it working after some fiddling with dependency versions. But now switching to latest. Thanks for the help.
11 replies
HHomarr
Created by Xum on 10/21/2023 in #💬・get-help
Build from source issues
Using yarn worked. Thanks!
11 replies
HHomarr
Created by Xum on 10/21/2023 in #💬・get-help
Build from source issues
I disabled eslinting according to these instructions but still getting the error on the calendar widget. https://nextjs.org/docs/app/api-reference/next-config-js/eslint If anyone knows exact working steps to build latest from source, please share.
11 replies
HHomarr
Created by Xum on 10/21/2023 in #💬・get-help
Build from source issues
Running build from master branch is also failing. Looking to see how or if I can fix this without any code change.
root@homarr:~/homarr# npm run build

> next build

- info Linting and checking validity of types ..- error ESLint: ESLint configuration in package.json is invalid: - Unexpected top-level property "ignoreDuringBuilds".
- info Linting and checking validity of types ..Failed to compile.

./src/widgets/calendar/CalendarTile.tsx:108:7
Type error: Type '{ defaultDate: Date; onPreviousMonth: Dispatch<SetStateAction<Date>>; onNextMonth: Dispatch<SetStateAction<Date>>; ... 10 more ...; renderDay: (date: Date) => Element; }' is not assignable to type 'IntrinsicAttributes & Pick<CalendarProps, "right" | "left" | "id" | "hidden" | "suppressHydrationWarning" | "className" | "color" | "lang" | ... 352 more ... | "onPreviousMonth"> & RefAttributes<...>'.
Property 'hasNextLevel' does not exist on type 'IntrinsicAttributes & Pick<CalendarProps, "right" | "left" | "id" | "hidden" | "suppressHydrationWarning" | "className" | "color" | "lang" | ... 352 more ... | "onPreviousMonth"> & RefAttributes<...>'.

106 | date={month}
107 | maxLevel="month"
> 108 | hasNextLevel={false}
| ^
109 | styles={{
110 | calendarHeader: {
111 | maxWidth: 'inherit',
- info Linting and checking validity of types ...
root@homarr:~/homarr# npm run build

> next build

- info Linting and checking validity of types ..- error ESLint: ESLint configuration in package.json is invalid: - Unexpected top-level property "ignoreDuringBuilds".
- info Linting and checking validity of types ..Failed to compile.

./src/widgets/calendar/CalendarTile.tsx:108:7
Type error: Type '{ defaultDate: Date; onPreviousMonth: Dispatch<SetStateAction<Date>>; onNextMonth: Dispatch<SetStateAction<Date>>; ... 10 more ...; renderDay: (date: Date) => Element; }' is not assignable to type 'IntrinsicAttributes & Pick<CalendarProps, "right" | "left" | "id" | "hidden" | "suppressHydrationWarning" | "className" | "color" | "lang" | ... 352 more ... | "onPreviousMonth"> & RefAttributes<...>'.
Property 'hasNextLevel' does not exist on type 'IntrinsicAttributes & Pick<CalendarProps, "right" | "left" | "id" | "hidden" | "suppressHydrationWarning" | "className" | "color" | "lang" | ... 352 more ... | "onPreviousMonth"> & RefAttributes<...>'.

106 | date={month}
107 | maxLevel="month"
> 108 | hasNextLevel={false}
| ^
109 | styles={{
110 | calendarHeader: {
111 | maxWidth: 'inherit',
- info Linting and checking validity of types ...
11 replies
HHomarr
Created by Xum on 10/21/2023 in #💬・get-help
Build from source issues
This is helpful. Yes, I didnt switch branches and looks like the default is dev branch. By latest do you mean the master branch?
11 replies