You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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}
The text was updated successfully, but these errors were encountered:
@seansund FYI, to fix this I exported implementation classes again <SERVICE_NAME> instead of <SERVICE_NAME>Api in index.ts files and I'll release beta.13 if you know how to fix this so I can use <SERVICE_NAME>Api instead I'll be able to revert back to those pretty quickly
When trying to consume any service using
import from import { <SERVICE_NAME>Api } from '@cloudnativetoolkit/iascable';
e.g.CatalogLoaderApi
I'm getting:It looks like the
CatalogLoaderApi
(and any other api) are empty they are not bound to their corresponding implementation (in that caseCatalogLoader
) which is weird because I clearly see it in the built code inbuild/esm/index.js
:The text was updated successfully, but these errors were encountered: