CCF Backstage Not Loading After Upgrading to frontend 0.0.7 and backend 0.1.0

40 views
Skip to first unread message

Christopher Krull

unread,
Jan 13, 2023, 5:32:40 PM1/13/23
to Cloud Carbon Footprint
Bumped the versions of the plugins in app/package.json and backend/packagejson.  yarn install and yarn build were successful.  When running locally fails when going to CCF with this error:


ErroruseLocation() may be used only in the context of a <Router> component.
Call Stack
 invariant
  node_modules/@cloud-carbon-footprint/backstage-plugin-frontend/node_modules/@remix-run/router/dist/router.js:874:11
 useLocation
  node_modules/@cloud-carbon-footprint/backstage-plugin-frontend/node_modules/react-router/dist/index.js:380:95
 useRouteRef
  node_modules/@cloud-carbon-footprint/backstage-plugin-frontend/node_modules/@backstage/core-plugin-api/dist/index.esm.js:473:87
 RoutableExtensionWrapper
  node_modules/@cloud-carbon-footprint/backstage-plugin-frontend/node_modules/@backstage/core-plugin-api/dist/index.esm.js:536:15
 renderWithHooks
  node_modules/react-dom/cjs/react-dom.development.js:14985:18
 updateFunctionComponent
  node_modules/react-dom/cjs/react-dom.development.js:17356:20
 mountLazyComponent
  node_modules/react-dom/cjs/react-dom.development.js:17677:17
 beginWork
  node_modules/react-dom/cjs/react-dom.development.js:19055:16
 HTMLUnknownElement.callCallback
  node_modules/react-dom/cjs/react-dom.development.js:3945:14
 Object.invokeGuardedCallbackDev
  node_modules/react-dom/cjs/react-dom.development.js:3994:16

Wanted to throw it out here first before opening an issue.

Thanks,

Chris K
Minneapolis, MN, USA

Christopher Krull

unread,
Jan 13, 2023, 5:46:30 PM1/13/23
to Cloud Carbon Footprint
Sorry forgot to specify Backstage 1.9.1.

Cloud Carbon Footprint

unread,
Jan 17, 2023, 6:13:18 PM1/17/23
to Cloud Carbon Footprint
Hi Chris,

Thanks for bringing this to our attention! We just recently released an update to the plugin that should allow it to now be compatible with the latest version of Backstage (v1.10.0). 

Try reinstalling or bumping the versions of the plugins and let us know if you're still encountering the same issue. The latest plugin versions should be frontend v0.0.8 and backend v0.1.1

If you're still encountering issues with v1.9.1 then you may also have to upgrade your version of Backstage as well.

Cheers,
The Cloud Carbon Footprint Team at Thoughtworks 

Christopher Krull

unread,
Jan 18, 2023, 1:00:06 PM1/18/23
to Cloud Carbon Footprint
Bumping the plugin to new versions on v1.9.1 did not work, but after I bumped to Backstage v1.10.1 the new plugin version is working.
Reply all
Reply to author
Forward
0 new messages