Skip to content

Cannot import /alpha features in backstage-plugin-github-pull-requests #2221

@okolafa

Description

@okolafa

Expected Behavior

Following README of the plugin, I should import without issues:

import gitHubPullRequestsApi from '@roadiehq/backstage-plugin-github-pull-requests/alpha';

Current Behavior

Instead I am getting following error:

Cannot find module '@roadiehq/backstage-plugin-github-pull-requests/alpha' or its corresponding type declarations.ts(2307)

Steps to Reproduce

  • Upgrade to version 3.7.0
  • Insert import into App.tsx of your application

Possible Solution

I think the following is missing from package.json:

"exports": {
    ".": "./src/index.ts",
    "./alpha": "./src/alpha.tsx",
    "./package.json": "./package.json"
  },

Context

I am not that familiar with publishing public packages, so not sure if this is the issue.

Your Environment

  • @backstage/plugin-catalog-react version: 2.1.1
  • @backstage/integration version: 1.18.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions