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

🐛 Bug Report: Running yarn dev starts only frontend customized plugin and not its backend in port 7007 #24696

Open
2 tasks done
eilonash92 opened this issue May 8, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@eilonash92
Copy link

📜 Description

I develop a frontend plugin and a backend plugin.
When I start each plugin by itself using yarn start, I'm able to run both backend and frontend plugins.

But from the main page using yarn dev, only the frontend plugin is accessible, but backend plugin in port 7007 is not.

👍 Expected behavior

I will be able to run my plugin from the home page and the frontend plugin will be able to reach the backend plugin data

👎 Actual Behavior with Screenshots

image

👟 Reproduction steps

Going into backstage directory and running yarn dev doesn't start my backend plugin, only the core plugins and my frontend plugin.

📃 Provide the context for the Bug.

No response

🖥️ Your Environment

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

@eilonash92 eilonash92 added the bug Something isn't working label May 8, 2024
@Rugvip
Copy link
Member

Rugvip commented May 8, 2024

Have you added the plugin to packages/backend? When you yarn start in the plugin folders you'll use a local setup for the plugin, but yarn dev in the repo root will instead run packages/app and packages/backend.

@eilonash92
Copy link
Author

If its a manual procedure, shouldn't we want to add it automatically to packages/backend when we create backstage plugin?
Since we do it automatically to frontend plugins in packages/app

@eilonash92
Copy link
Author

@Rugvip adding it to packages/backend solved the issue.

@Rugvip
Copy link
Member

Rugvip commented May 8, 2024

@eilonash92 yep it is right now, we'll likely adjust one of the two in the future so that they both match. Either not adding the frontend plugin to the app, or adding the backend plugin to the backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants