container-registry / backstage-plugin-harbor

Backstage plugin to show you information about your docker images within Harbor.
MIT License
17 stars 25 forks source link

Can't display Harbor widget #229

Open johanhammar opened 1 year ago

johanhammar commented 1 year ago

The Harbor widget fails to render with an error message

C.pointer.transition is not a function

and the stackstrace (slightly redacted)

Q@<url>/static/227.d112cd9d.chunk.js:62:25596
value@<url>/static/227.d112cd9d.chunk.js:62:34927
value@<url>/static/227.d112cd9d.chunk.js:62:34480
Ya@<url>/static/module-react-dom.148176ee.js:14:1673
qa@<url>/static/module-react-dom.148176ee.js:16:5030
46475/P.unstable_runWithPriority@<url>/static/vendor.3eb075c9.js:153:3989
Ze@<url>/static/module-react-dom.148176ee.js:12:38480
nn@<url>/static/module-react-dom.148176ee.js:16:1809
Si@<url>/static/module-react-dom.148176ee.js:14:11069
52967/ao/<@<url>/static/module-react-dom.148176ee.js:12:38702
46475/P.unstable_runWithPriority@<url>/static/vendor.3eb075c9.js:153:3989
Ze@<url>/static/module-react-dom.148176ee.js:12:38480
ao@<url>/static/module-react-dom.148176ee.js:12:38650
ae@<url>/static/module-react-dom.148176ee.js:12:38583
Fe@<url>/static/module-react-dom.148176ee.js:14:8443
bl@<url>/static/module-react-dom.148176ee.js:12:58145
87617/G/H</<@<url>/static/227.d112cd9d.chunk.js:1:773

Environment: Backstage 1.14.0 & 1.13.2

jfrverdasca commented 1 year ago

I have the same problem here. Does anyone know how to fix this or any workarounds?

marct83 commented 1 year ago

Anyone get this to work?

marct83 commented 1 year ago

Add this to your /packages/app/package.json

"d3-selection": "^2",
"d3-transition": "^2"

It will fix it

Vad1mo commented 1 year ago

Can you provide this as a PR happy to accept it

locomoco28 commented 1 year ago

Add this to your /packages/app/package.json

"d3-selection": "^2",
"d3-transition": "^2"

It will fix it

Thanks, that's exactly what I needed. Took me a while to get this working...

yarn add command:

yarn --cwd packages/app add d3-selection@^2 d3-transition@^2