rootlyhq/backstage-plugin

Cannot find module '@rootly/backstage-plugin/src/components/Entity' from 'components/catalog/EntityPage.tsx'

Closed this issue · 1 comments

mcncl commented

The plugin isn't building correctly, it has no dist or src folder, which contains the plugin itself, leading to an error seen below. I've also attached a screenshot of the plugin dir, compared to the Buildkite one.

The Backstage CLI jest transformModules option is no longer used and will be ignored. All modules are now always transformed.
--
  | FAIL  src/App.test.tsx
  | ● Test suite failed to run
  |  
  | Cannot find module '@rootly/backstage-plugin/src/components/Entity' from 'components/catalog/EntityPage.tsx'
  |  
  | Require stack:
  | components/catalog/EntityPage.tsx
  | App.tsx
  | App.test.tsx
  |  
  | 68 \|   RELATION_PROVIDES_API
  | 69 \| } from '@backstage/catalog-model'
  | > 70 \| import { RootlyOverviewCard } from '@rootly/backstage-plugin/src/components/Entity';
  | \|               ^
  | 71 \| import { RootlyIncidentsPage } from '@rootly/backstage-plugin';
  | 72 \|
  | 73 \| const entityWarningContent = (

Screenshot 2022-06-24 at 10 57 39 am

kwent commented

Thank you! Should be fixed in 0.1.1