-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Describe the bug
No overload matches this call. Overload 1 of 3, '(path: string, module: Readonly<Record<string, unknown>>, children?: readonly Readonly<{ path: string; module?: RouteModule | undefined; component?: ComponentType | undefined; config?: Readonly<...> | undefined; children?: readonly Readonly<...>[] | undefined; flowLayout?: boolean | undefined; }>[] | undefined): Readonly<...>', gave the following error. Argument of type 'LazyExoticComponent<(props: DropDownMenuProps) => Element>' is not assignable to parameter of type 'Readonly<Record<string, unknown>>'. Index signature for type 'string' is missing in type 'LazyExoticComponent<(props: DropDownMenuProps) => Element>'. Overload 2 of 3, '(path: string, component: ComponentType, config: Readonly<{ title?: string | undefined; rolesAllowed?: readonly [string, ...string[]] | undefined; loginRequired?: boolean | undefined; ... 5 more ...; detail?: unknown; }> | undefined, children?: readonly Readonly<...>[] | undefined): Readonly<...>', gave the following error. Argument of type 'LazyExoticComponent<(props: DropDownMenuProps) => Element>' is not assignable to parameter of type 'ComponentType'. Type 'LazyExoticComponent<(props: DropDownMenuProps) => Element>' is not assignable to type 'FunctionComponent<{}>'. Types of parameters 'props' and 'props' are incompatible. Type '{}' is missing the following properties from type 'DropDownMenuProps': title, content
/home/lars/dev/cliber/src/main/frontend/generated/file-routes.ts:20:51
18 | createRoute_1("comps", [
19 | createRoute_1("dropDownMenu", [
20 | createRoute_1("DropDownMenu", lazy_1(() => import("../views/components/comps/dropDownMenu/DropDownMenu.js")), { "route": "DropDownMenu", "flowLayout": false, "title": "Drop Down Menu" })
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 | ]),
22 | createRoute_1("GroupComp", lazy_1(() => import("../views/components/comps/GroupComp.js")), { "route": "GroupComp", "flowLayout": false, "title": "Group Comp" }),
23 | createRoute_1("language", [
Expected-behavior
No error
Reproduction
update hilla from 28.7.2 to 24.8.3
I don't know anymore. I got back to 24.7.2 and hope, if I try to upgrade hilla the next time, it will work.
System Info
update hilla from 28.7.2 to 24.8.3