Skip to content

Export services fails TS4023 (“cannot be named”) due to QraftServiceOperationsToken symbol in generated services/index.ts #364

@pavelvladimir

Description

@pavelvladimir

When generating services with @openapi-qraft/cli (using tanstack-query-react), TypeScript fails to emit declarations with the following error:

TS4023: Exported variable 'services' has or is using name 'QraftServiceOperationsToken' from external module ".../ProductsService" but cannot be named.

This happens because each generated *Service includes the QraftServiceOperationsToken unique symbol, which TypeScript cannot name when exported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions