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
6 changes: 3 additions & 3 deletions plugins/catalog-backend-module-unprocessed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"dist"
],
"dependencies": {
"@backstage/backend-plugin-api": "workspace:^",
"@backstage/catalog-model": "workspace:^",
"@backstage/plugin-auth-node": "workspace:^",
"@backstage/backend-plugin-api": "0.6.19",
"@backstage/catalog-model": "0.1.1",
"@backstage/plugin-auth-node": "0.6.0",
Comment on lines +31 to +33

Choose a reason for hiding this comment

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

Correctness: Lines 10-12: Replacing workspace:^ with fixed versions breaks monorepo dependency linking. This forces fetching from the registry instead of using local workspace packages, causing incorrect local development behavior.

🤖 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-backend-module-unprocessed/package.json
Lines: 31-33

Problem: The diff replaces workspace protocol (`workspace:^`) with fixed version numbers for Backstage dependencies. This breaks monorepo workspace linking, causing npm/yarn to fetch packages from the registry instead of using local workspace packages during development.

Fix Instructions:
1. Revert the three dependency declarations back to `workspace:^` protocol
2. Change `"@backstage/backend-plugin-api": "0.6.19"` to `"@backstage/backend-plugin-api": "workspace:^"`
3. Change `"@backstage/catalog-model": "0.1.1"` to `"@backstage/catalog-model": "workspace:^"`
4. Change `"@backstage/plugin-auth-node": "0.6.0"` to `"@backstage/plugin-auth-node": "workspace:^"`

This ensures proper workspace dependency resolution in the Backstage monorepo.
✨ Committable Code Suggestion

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

Suggested change
"@backstage/backend-plugin-api": "0.6.19",
"@backstage/catalog-model": "0.1.1",
"@backstage/plugin-auth-node": "0.6.0",
"files": [
"dist"
],
"dependencies": {
"@backstage/backend-plugin-api": "workspace:^",
"@backstage/catalog-model": "workspace:^",
"@backstage/plugin-auth-node": "workspace:^",
"express-promise-router": "^4.1.1",
"knex": "^2.4.2"
}

"express-promise-router": "^4.1.1",
"knex": "^2.4.2"
}
Expand Down
Loading