Closed youngyol closed 3 months ago
Hi @youngyol I have tried to reproduce this issue locally, but the svg icons are loaded correctly in http://localhost:3000/static/ in Sources. Can you try with backstage 1.26.5 once? In package.json it says
"backstage": {
"role": "frontend-plugin",
"supported-versions": "1.26.5"
},
Hi @ciiay, thank you for your response.
I tried downgrading to Backstage 1.26.0, but still encounter the same issue.
Here are the steps I followed to set up:
# Created a new Backstage app version 1.26.0
npx @backstage/create-app@0.5.14
# Added the Kubernetes plugin (frontend)
yarn --cwd packages/app add @backstage/plugin-kubernetes
# Added the Kubernetes plugin (backend)
yarn --cwd packages/backend add @backstage/plugin-kubernetes-backend
# Added the Topology plugin
yarn workspace app add @janus-idp/backstage-plugin-topology
# Enabled the TOPOLOGY tab in packages/app/src/components/catalog/EntityPage.tsx:
import { TopologyPage } from '@janus-idp/backstage-plugin-topology';
const serviceEntityPage = (
<EntityLayout>
...
<EntityLayout.Route path="/topology" title="Topology">
<TopologyPage />
</EntityLayout.Route>
</EntityLayout>
);
# To start the app
yarn install
yarn dev
I also checked the node_modules/@janus-idp/backstage-plugin-topology/dist/utils/icons.esm.js
file located at the project root, and it contains the following imports:
import defaultImg from '../plugins/topology/src/imgs/logos/defaulthub.svg';
import djangoImg from '../plugins/topology/src/imgs/logos/django.svg';
import dotnetImg from '../plugins/topology/src/imgs/logos/dotnet.svg';
...
However, I noticed that the actual images are located at node_modules/@janus-idp/backstage-plugin-topology/dist/imgs/logos/*.svg
. This discrepancy might be causing the issue, but I am not entirely sure.
I want to mention that I am new to Backstage and TypeScript, so I might be missing something obvious.
I would appreciate further assistance. Is there a specific configuration or additional step that I might be missing?
Thank you for your help.
Same issue here, using Backstage version 1.29.1. Issue not present in v 1.21.11 of @janus-idp/backstage-plugin-topology
Hi @youngyol @mikkeschiren , I have tested again with the latest @janus-idp/backstage-plugin-topology 1.25.0 version and not able to reproduce the issue. The svg image references are updated with the correct relative path now as shown below. Could you please confirm again with the latest @janus-idp/backstage-plugin-topology 1.25.0 version?
Hi @ciiay, I tested with version 1.25.0, and everything works fine now. I'm closing the issue. Thank you.
I think there's a regression on this side. Version 1.27.x present same issue described above. Downgrading to 1.25.0 as suggested works fine with Backstage 1.29.2.
Using 1.25.0 as a workaround for now with backstage 1.31, but please re-open this underlying issue.
Describe the bug
When using the @janus-idp/backstage-plugin-topology with my Backstage application, I encounter the following error:
This error occurs when I try to load my application at
localhost:3000
. However, when I revert to version 1.21.11 of the plugin, everything works fine without any issues.Expected Behavior
What are the steps to reproduce this bug?
yarn dev
localhost:3000
in a browser.Versions of software used and environment