Skip to content

fix(tech-insights): declare dependencies that were only available through hoisting - #12466

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

sebdanielsson wants to merge 1 commit into
backstage:mainfrom
sebdanielsson:fix/tech-insights-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-tech-insights-react: add @types/react as an optional peer, since the published types import react. Add the react-dom and react-router-dom peers that @backstage/core-plugin-api needs, also as dev dependencies.
  • plugin-tech-insights: add @material-table/core, a peer of @material-table/exporters, and its @date-io/core peer. Knip lists @date-io/core as unused, since nothing imports it directly.

✔️ 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-tech-insights-react use React types
without declaring @types/react, and it didn't forward the react-dom and
react-router-dom peers that @backstage/core-plugin-api requires.
plugin-tech-insights didn't provide the @material-table/core peer that
@material-table/exporters requires. 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/tech-insights Used to tag tech-insights workspace issues 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-tech-insights-react workspaces/tech-insights/plugins/tech-insights-react patch v1.7.0
@backstage-community/plugin-tech-insights workspaces/tech-insights/plugins/tech-insights patch v1.5.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/tech-insights Used to tag tech-insights workspace issues and pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants