Closed awsjim closed 2 weeks ago
Confirmed here also.
I double checked the versions and the 1.7.5 is introducing this effect. As workaround you can switch to 1.7.4 and it will compile just fine. I also recently saw the @redhat/backstage-plugin-keycloak-backend offer but noticed it's an outdated version containing a bug fetching only 100 rows. This is already fixed in the janus-idp version since 1.5 something. So keep away from that as well.
yeah, it seems there is some issue with publishing
for 1.7.4, type definitions are generated and I can see index.d.ts
https://www.npmjs.com/package/@janus-idp/backstage-plugin-keycloak-backend/v/1.7.4?activeTab=code
but from 1.7.5 onwards it's not there https://www.npmjs.com/package/@janus-idp/backstage-plugin-keycloak-backend/v/1.7.5?activeTab=code
Confirmed still missing in 1.9.9.
It looks like the index.d.ts
file is available from version 1.9.13.
You can find more details and the latest version here: npm package link.
This issue has been closed due to the fact that the Janus community is being sunset.
For future plugin issues, please use https://github.com/backstage/community-plugins/issues
For future showcase issues, please use https://issues.redhat.com/browse/RHIDP
For more information on the sunset, see:
https://janus-idp.io/blog/2024/07/05/future-of-janus-community https://issues.redhat.com/browse/RHIDP-3690 https://issues.redhat.com/browse/RHIDP-1018
Describe the bug
I'm following the documentation to setup authn/authz with the janus-idp keycloak plugin as described at https://janus-idp.io/plugins/keycloak. After installing the plugin and modifying the catalog plugin file, typescript compilation fails to find a declaration of types for the plugins
Expected Behavior
yarn tsc
should complete with no errorsWhat are the steps to reproduce this bug?
BACKSTAGE_APP_NAME=backstage npx -y -q @backstage/create-app@0.5.7 --path backstage
cd backstage && yarn --cwd packages/backend add @janus-idp/backstage-plugin-keycloak-backend
packages/backend/src/plugins/catalog.ts
file as described at https://janus-idp.io/plugins/keycloakexport default async function createPlugin( env: PluginEnvironment, ): Promise {
const builder = await CatalogBuilder.create(env);
builder.addProcessor(new ScaffolderEntitiesProcessor());
);
const { processingEngine, router } = await builder.build(); await processingEngine.start(); return router; }
Typescript compilation results:
Versions of software used and environment