Skip to content
This repository was archived by the owner on Sep 1, 2026. It is now read-only.
This repository was archived by the owner on Sep 1, 2026. It is now read-only.

Service imports empty when consuming iascable as library #286

Description

@NoeSamaille

When trying to consume any service using import from import { <SERVICE_NAME>Api } from '@cloudnativetoolkit/iascable'; e.g. CatalogLoaderApi I'm getting:

Request GET /automation/catalog/boms failed with status code 500. TypeError: this.catalogLoader.loadCatalog is not a function
    at /workspace/ascent-bff/dist/helpers/services.helper.js:79:32
    at new Promise (<anonymous>)
    at ServicesHelper.fetchCatalog (/workspace/ascent-bff/dist/helpers/services.helper.js:76:16)
    at /workspace/ascent-bff/dist/helpers/services.helper.js:131:42
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

It looks like the CatalogLoaderApi (and any other api) are empty they are not bound to their corresponding implementation (in that case CatalogLoader) which is weird because I clearly see it in the built code in build/esm/index.js:

{bind: CatalogLoaderApi, to: CatalogLoader}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions