loblaw-sre / backstage-plugin-gitlab

Backstage plugin for Gitlab
52 stars 31 forks source link

useLocation() may be used only in the context of a <Router> component. #199

Closed mircomarahrens closed 1 year ago

mircomarahrens commented 1 year ago

Adding this repository to a new app breaks the whole application with the error

useLocation() may be used only in the context of a <Router> component.

on the WebUI.


System:

node ➜ /workspace $ yarn --version
1.22.19
node ➜ /workspace $ node --version
v16.17.1

Steps to reproduce:

  1. Create app via
npx @backstage/create-app
  1. Adding this plugin from app root folder via
yarn workspace app add @loblaw/backstage-plugin-gitlab
  1. Starting with
yarn dev
mircomarahrens commented 1 year ago

Missed something:

yarn install