Skip to content
Open
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
2 changes: 1 addition & 1 deletion plugins/splunk-on-call/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@backstage/core-components": "workspace:^",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/plugin-catalog-react": "workspace:^",
"@backstage/theme": "workspace:^",
"@backstage/theme": "0.1.1",

Choose a reason for hiding this comment

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

Correctness: The change to @backstage/theme from workspace:^ to 0.1.1 breaks monorepo dependency resolution. This will cause version mismatches with other workspace packages, leading to runtime errors. Revert 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/splunk-on-call/package.json
Line: 40

Problem: The dependency `@backstage/theme` has been changed from `workspace:^` to a pinned version `0.1.1`, breaking the monorepo workspace protocol used by all other Backstage dependencies in this package.

Fix Instructions:
1. Revert the change to use `workspace:^` instead of `0.1.1`
2. Ensure consistency with other Backstage dependencies: `@backstage/catalog-model`, `@backstage/core-components`, `@backstage/core-plugin-api`, and `@backstage/plugin-catalog-react` all use `workspace:^`
3. If a specific version is required, document the reason and verify compatibility with the workspace build system
4. Test that the package builds correctly within the monorepo context after the change
✨ Committable Code Suggestion

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

Suggested change
"@backstage/theme": "0.1.1",
"@backstage/catalog-model": "workspace:^",
"@backstage/core-components": "workspace:^",
"@backstage/core-plugin-api": "workspace:^",
"@backstage/plugin-catalog-react": "workspace:^",
"@backstage/theme": "workspace:^",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.61",

"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "4.0.0-alpha.61",
Expand Down
Loading