Skip to content

fix(announcements): declare dependencies that were only available through hoisting - #12467

Draft
sebdanielsson wants to merge 1 commit into
backstage:mainfrom
sebdanielsson:fix/announcements-declare-deps
Draft

sebdanielsson wants to merge 1 commit into
backstage:mainfrom
sebdanielsson:fix/announcements-declare-deps

Conversation

@sebdanielsson

@sebdanielsson sebdanielsson commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Hey, I just made a Pull Request!

Strict installs (pnpm, Yarn PnP) only resolve declared dependencies, and these packages use some they don't declare.

  • plugin-announcements-react: add @backstage/frontend-plugin-api and @types/luxon, which the published types import. Add the react-dom and react-router-dom peers its Backstage dependencies need, also as dev dependencies.
  • plugin-announcements: add @backstage/filter-predicates, which dist/alpha.d.ts imports.

#12073 changes the React peer ranges here but not these dependencies. I can close this if you'd rather fold it into #12073.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

🤖 Generated with Claude Code

https://claude.ai/code/session_01NZ5217H8AkdKkDBNzEiTik

…ough hoisting

The published types of plugin-announcements-react import
@backstage/frontend-plugin-api and luxon types, and the alpha types of
plugin-announcements import @backstage/filter-predicates, without
declaring them. plugin-announcements-react also didn't forward the
react-dom and react-router-dom peers that its Backstage dependencies
require. Strict installs (pnpm, Yarn's pnpm linker, PnP) can't resolve
undeclared packages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NZ521AzxwB3vLPS9t6fABT
Signed-off-by: Sebastian Danielsson <[email protected]>
@backstage-service backstage-service added the workspace/announcements Used to tag announcements workspace isses and pull requests label Nov 27, 2026
@backstage-goalie

Copy link
Copy Markdown
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-announcements-react workspaces/announcements/plugins/announcements-react patch v0.31.0
@backstage-community/plugin-announcements workspaces/announcements/plugins/announcements patch v2.15.0

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workspace/announcements Used to tag announcements workspace isses and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants