Skip to content

Typescript 5.5 and maximum length serialize #140

@mikecann

Description

@mikecann

We have been using type-route for some time now and love it.

We have however just upgraded our project to typescript v5.5 and started getting these errors:

libs/client-shared/src/app/routes.ts:168:31 - error TS7056: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.

168 export const { RouteProvider, useRoute, routes, session } = router;
                                  ~~~~~~~~

libs/client-shared/src/app/routes.ts:168:49 - error TS7056: The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.

168 export const { RouteProvider, useRoute, routes, session } = router;

This happens when attempting to destructure the router.

image

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions