Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions plugins/catalog-import/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@
"@backstage/catalog-client": "workspace:^",
"@backstage/catalog-model": "workspace:^",
"@backstage/config": "workspace:^",
"@backstage/core-components": "workspace:^",
"@backstage/core-components": "0.8.6",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/errors": "workspace:^",
"@backstage/integration": "workspace:^",
"@backstage/integration-react": "workspace:^",
"@backstage/integration-react": "0.1.1",
Comment on lines +38 to +42
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correctness: Internal monorepo dependencies must use workspace:^ to ensure local linking. Pinning specific versions (0.8.6, 0.1.1) causes duplicate package installations and breaks runtime singletons. Revert these to workspace:^.

🤖 AI Agent Prompt for Cursor/Windsurf

📋 Copy this prompt to your AI coding assistant (Cursor, Windsurf, etc.) to get help fixing this issue

File: plugins/catalog-import/package.json
Lines: 38-42

Problem: Two Backstage dependencies have been changed from workspace protocol (`workspace:^`) to pinned versions (`0.8.6` and `0.1.1`), breaking monorepo consistency.

Required Fix:
1. Revert `@backstage/core-components` from `"0.8.6"` to `"workspace:^"`
2. Revert `@backstage/integration-react` from `"0.1.1"` to `"workspace:^"`
3. If these pinned versions were intentional workarounds for breaking changes, add inline comments explaining why and create a tracking issue to restore workspace protocol
4. Run `yarn install` to regenerate lockfile with workspace references
5. Verify no type errors exist after restoration

Context: All other Backstage packages in this file use `workspace:^` — this is the standard monorepo pattern to ensure coordinated version updates across the workspace.
✨ Committable Code Suggestion

💡 This is a one-click fix! Click "Commit suggestion" to apply this change directly to your branch.

Suggested change
"@backstage/core-components": "0.8.6",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/errors": "workspace:^",
"@backstage/integration": "workspace:^",
"@backstage/integration-react": "workspace:^",
"@backstage/integration-react": "0.1.1",
"dependencies": {
"@backstage/catalog-client": "workspace:^",
"@backstage/catalog-model": "workspace:^",
"@backstage/config": "workspace:^",
"@backstage/core-components": "workspace:^",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/errors": "workspace:^",
"@backstage/integration": "workspace:^",
"@backstage/integration-react": "workspace:^",
"@backstage/plugin-catalog-common": "workspace:^",
"@backstage/plugin-catalog-react": "workspace:^",
"@material-ui/core": "^4.12.2",

"@backstage/plugin-catalog-common": "workspace:^",
"@backstage/plugin-catalog-react": "workspace:^",
"@material-ui/core": "^4.12.2",
Expand Down
Loading