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

turbo configuration issue when creating a new back-end plugin #1270

Open
04kash opened this issue May 21, 2024 · 1 comment · May be fixed by #1271
Open

turbo configuration issue when creating a new back-end plugin #1270

04kash opened this issue May 21, 2024 · 1 comment · May be fixed by #1271
Assignees
Labels
jira Sync this issue with Jira kind/bug Something isn't working status/triage

Comments

@04kash
Copy link
Contributor

04kash commented May 21, 2024

Describe the bug

On creating a backend plugin with a dev/index.ts file present in it and running yarn start in the root directory, both the backend in packages/backend/index.ts and in the backend plugin's dev/index.ts run.
This issue does not appear with existing plugins as shown in the screenshot as they don't have a dev/index.ts file:

Screenshot from 2024-05-21 15-56-22

Expected Behavior

yarn start in the root directory runs without any errors

What are the steps to reproduce this bug?

  1. run yarn new --select backend-plugin (named it hello)
  2. run yarn --cwd packages/backend add @internal/backstage-plugin-hello-backend@^0.1.0
  3. add backend.add(import('@internal/backstage-plugin-hello-backend')); to packages/backend/index.js
  4. run yarn start

Versions of software used and environment

Built on top of commit 4cf349cd4bb17a1ec13b7d6d64c6f1492fbf028b of backstage-showcase

@04kash 04kash added kind/bug Something isn't working status/triage labels May 21, 2024
@github-actions github-actions bot added the jira Sync this issue with Jira label May 21, 2024
@04kash 04kash linked a pull request May 21, 2024 that will close this issue
5 tasks
@Zaperex
Copy link
Member

Zaperex commented May 21, 2024

For context, this causes port 7007 to be used by both, and typically caused the backstage-showcase backend to fail since the other plugin already grabbed port 7007.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jira Sync this issue with Jira kind/bug Something isn't working status/triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants