Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-1134

[janus-idp/backstage-plugins] [rbac-backend] Error: Plugin 'permission' is already registered

XMLWordPrintable

    • RHDH Plugins 3262

      [2482824077] Upstream Reporter: Long Zhang
      Upstream issue status: Closed
      Upstream description:

      Describe the bug

      As mentioned in the documentation here, we need to set up the Backstage permission framework first.

      For the new Backend system, I added the following code to packages/backend/src/index.ts:

      backend.add(import('@backstage/plugin-permission-backend/alpha'));
      backend.add(import('@janus-idp/backstage-plugin-rbac-backend'));

      When run yarn dev from the root folder, I get the following error:

      [1]             throw new Error(`Plugin '${r.pluginId}' is already registered`);
      [1]                   ^
      [1] Error: Plugin 'permission' is already registered

      I find that both @backstage/plugin-permission-backend/alpha and @janus-idp/backstage-plugin-rbac-backend use the same plugin id (permission), but I am not sure about how to fix it.

      Expected Behavior

      Backstage is up and running.

      What are the steps to reproduce this bug?

      1. Follow the example here to setup Backstage permission framework
      2. Add @janus-idp/backstage-plugin-rbac-backend
      3. run yarn dev from the root folder

      Versions of software used and environment

      • Backstage 1.27.0
      • @backstage/plugin-permission-backend 0.5.42
      • @janus-idp/backstage-plugin-rbac-backend@npm 4.10.0

      Upstream URL: https://github.com/janus-idp/backstage-plugins/issues/2082

              rh-ee-pknight Patrick Knight
              upstream-sync Upstream Sync
              RHDH Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: