loblaw-sre / backstage-plugin-gitlab

Backstage plugin for Gitlab
52 stars 31 forks source link

Not showing data for self hosted Gitlab #290

Open SnehaTrivedi1 opened 1 year ago

SnehaTrivedi1 commented 1 year ago

When I am setting up plugin for self hosted gitlab and not gitlab.com It is giving below error message: Error useLocation() may be used only in the context of a <Router> component. Call Stack  l   node_modules/@loblaw/backstage-plugin-gitlab/node_modules/react-router-dom/node_modules/react-router/index.js:30:286  H   node_modules/@loblaw/backstage-plugin-gitlab/node_modules/react-router-dom/node_modules/react-router/index.js:39:299  useRouteRef   node_modules/@loblaw/backstage-plugin-gitlab/node_modules/@backstage/core-plugin-api/dist/index.esm.js:445:85  RoutableExtensionWrapper   node_modules/@loblaw/backstage-plugin-gitlab/node_modules/@backstage/core-plugin-api/dist/index.esm.js:528: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

JellyBellyDev commented 1 year ago

Hi @SnehaTrivedi1 I suggest you switch to the new official plugin: https://github.com/immobiliare/backstage-plugin-gitlab ;)

SnehaTrivedi1 commented 1 year ago

I had started with that plugin. But I was facing lot of issues in it regarding types.ts and utils.ts . I Will again try it tomorrow

Sent from Outlook for iOShttps://aka.ms/o0ukef


From: Andrea Giannantonio @.> Sent: Thursday, April 13, 2023 7:09:37 PM To: loblaw-sre/backstage-plugin-gitlab @.> Cc: Trivedi, Sneha @.>; Mention @.> Subject: Re: [loblaw-sre/backstage-plugin-gitlab] Not showing data for self hosted Gitlab (Issue #290)

Hi @SnehaTrivedi1https://github.com/SnehaTrivedi1 I suggest you switch to the new official plugin: https://github.com/immobiliare/backstage-plugin-gitlab ;)

— Reply to this email directly, view it on GitHubhttps://github.com/loblaw-sre/backstage-plugin-gitlab/issues/290#issuecomment-1507314763, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXZM4I7A7LLMMQZ4QHX34T3XBAXNDANCNFSM6AAAAAAW5LLXJ4. You are receiving this because you were mentioned.Message ID: @.***>