Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): adds missing dependencies #24699

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jkilzi
Copy link

@jkilzi jkilzi commented May 8, 2024

Hey, I just made a Pull Request!

✔️ 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)

@jkilzi jkilzi requested review from a team as code owners May 8, 2024 15:52
@jkilzi jkilzi requested review from Rugvip and camilaibs May 8, 2024 15:52
@jkilzi jkilzi marked this pull request as draft May 8, 2024 15:54
@backstage-goalie
Copy link
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage/cli packages/cli patch v0.26.5-next.1

@@ -38,7 +38,9 @@
"react-use": "{{versionQuery 'react-use' '17.2.4'}}"
},
"peerDependencies": {
"react": "{{versionQuery 'react' '^16.13.1 || ^17.0.0 || ^18.0.0'}}"
"react": "{{versionQuery 'react' '^16.13.1 || ^17.0.0 || ^18.0.0'}}",
"react-dom": "{{versionQuery 'react-dom' '^16.13.1 || ^17.0.0 || ^18.0.0'}}",
Copy link
Member

Choose a reason for hiding this comment

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

Hmm, not sure we necessarily want these as peers deps, we don't use them directly right? any strong opinion here?

Copy link
Author

Choose a reason for hiding this comment

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

@Rugvip, after reading your comment, I went and took a second look at the error message. Actually, the problem starts from /community-plugins/workspaces/<plugin-name-here>/node_modules/@backstage/app-defaults/dist' node_modules/@backstage/app-defaults/dist/index.esm.js. So, after inspecting the @backstage/app-defaults package.json I've found that this package lists these very same peerDependencies in its own package.json. Now it is clear to me that adding the peerDependencies again is irrelevant. A better question IMO is: What package should be tasked with installing the required peerDeps that @backstage/app-defaults needs? Is it the brand-new frontend plugin or should it be performed at a higher hierarchy in the repo? WDYT?

In the meantime, I'll remove the peerDependencies but I'll leave only the devDependencies section. Please let me know if that's an acceptable solution 🙏

fix(cli): adds missing dependencies

Addresses:
- !24674

Signed-off-by: Jonathan Kilzi <jkilzi@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants