Open athira-sabu opened 3 months ago
This seems like a duplicate of: https://github.com/backstage/backstage/issues/25063
It would be really helpful to include details steps to reproduce, like what folders you were in for each step to help better understand where commands were being ran.
Sure @awanlin , In the project, I have both frontend and backend plugins. I need to share some common types between these plugins, ('notifications-backend' and 'notifications').
yarn new
command from the plugins path./plugins/notifications-backend
Β folder, attempted to add this common plugin using the yarn add @internal/backstage-plugin-notifications-common
command.yarn add @internal/backstage-plugin-notifications-common
yarn add v1.22.19
[1/4] π Resolving packages...
warning Lockfile has incorrect entry for "@types/react@^16.13.1 || ^17.0.0". Ignoring it.
error An unexpected error occurred: "[https://registry.yarnpkg.com/@internal%2Fbackstage-plugin-notifications-common:](https://registry.yarnpkg.com/@internal%2fbackstage-plugin-notifications-common:) Not found".
info If you think this is a bug, please open a bug report with the information provided in "/Users/athira.sabu/Athira/backstage/plugins/notifications-backend/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
@Athira-Sabu I think that the issue linked from @awanlin is going to help you. I think that this looks like a yarn@1.x
bug, and upgrading to yarn@4
will solve a lot of these issues.
Wonder if we should look at shipping something other that yarn@1
in create-app
soon too.
Yes, was thinking about the fact that we should update create-app
as well @benjdlambert. π
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
π Description
I created a plugin that can be used for frontend and backend using command
yarn new
-> selectplugin-common
It got created. But when I try to add it to my plugins or backend getting below error,π Expected behavior
Should add package
@internal/backstage-plugin-notifications-common
inpackage.json
π Actual Behavior with Screenshots
Getting error
package not found
π Reproduction steps
yarn new
-> selectplugin-common
yarn add packages/backend <plugin-name>
π Provide the context for the Bug.
No response
π₯οΈ Your Environment
OS: Darwin 21.5.0 - darwin/x64 node: v20.12.1 yarn: 1.22.19 cli: 0.26.6 (installed) backstage: 1.27.0
π Have you spent some time to check if this bug has been raised before?
π’ Have you read the Code of Conduct?
Are you willing to submit PR?
None