Skip to content

🐛 plugin-rbac: Error with latest backstage #3253

Open
@klinkov

Description

@klinkov

Workspace

rbac

📜 Description

I got error

[app]: ERROR in ../../node_modules/@backstage-community/plugin-rbac/dist/components/ConditionalAccess/CustomArrayField.esm.js 5:0-88
[app]: Module not found: Error: Package path ./lib/schema/getDefaultFormState is not exported from package /Work/GPB/backstage-latest/node_modules/@backstage-community/plugin-rbac/node_modules/@rjsf/utils (see exports field in /Work/backstage-latest/node_modules/@backstage-community/plugin-rbac/node_modules/@rjsf/utils/package.json)

👍 Expected behavior

Plugin work without errors

👎 Actual Behavior with Screenshots

after yarn dev got error

[app]: ERROR in ../../node_modules/@backstage-community/plugin-rbac/dist/components/ConditionalAccess/CustomArrayField.esm.js 5:0-88
[app]: Module not found: Error: Package path ./lib/schema/getDefaultFormState is not exported from package /Work/GPB/backstage-latest/node_modules/@backstage-community/plugin-rbac/node_modules/@rjsf/utils (see exports field in /Work/backstage-latest/node_modules/@backstage-community/plugin-rbac/node_modules/@rjsf/utils/package.json)

👟 Reproduction steps

  1. npx @backstage/create-app@latest
  2. yarn workspace backend add @backstage-community/plugin-rbac-backend
  3. Add Route in packages/app/src/App.tsx
  4. Add Administration Sidebar Item in packages/app/src/components/Root/Root.tsx
  5. yarn workspace app add @backstage-community/plugin-rbac
  6. Add the RBAC plugin to the packages/backend/src/index.ts file and remove the Permission backend plugin and Allow All Permission policy module.

📃 Provide the context for the Bug.

Affected versions

backstage: 1.36.0 (and 1.36.1 too)
plugin-rbac:  1.39.0

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions