-
Bug
-
Resolution: Done
-
Undefined
-
None
-
None
-
1
-
False
-
-
False
-
Release Note Not Required
-
-
-
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 registeredI 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?
- Follow the example here to setup Backstage permission framework
- Add @janus-idp/backstage-plugin-rbac-backend
- 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