Uploaded image for project: 'Red Hat Developer Hub Bugs'
  1. Red Hat Developer Hub Bugs
  2. RHDHBUGS-2228

Scorecard - Error loading NPM packages for development of custom metric providers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 1.7.1
    • Scorecard
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Description of problem:

      The Scorecard back-end NPM package is not working with our Backstage setup for DevHub, which is currently on Backstage version 1.36. We also tried it with the latest Backstage version, but it didn’t work there either.

      The error log is attached in the screenshots. It seems that the config.d.ts file is not included in the exported package.

      https://github.com/redhat-developer/rhdh-plugins/blob/main/workspaces/scorecard/plugins/scorecard-backend/package.json

      Prerequisites (if any, like setup, operators/versions):

      Dev Backstage instance (version 1.36) or newer with the Scorecard backend plugin included in the dependiencies.

      https://www.npmjs.com/package/@red-hat-developer-hub/backstage-plugin-scorecard-backend

      Steps to Reproduce

      Include the Scorecard NPM packages in the dependencies and try to start the dev Backstage instance.

      Actual results:

      Error when starting the development instance.

      Expected results:

      NPM packages should be loaded properly.

      Reproducibility (Always/Intermittent/Only Once):{}

      Always

      Additional info (Such as Logs, Screenshots, etc):

      See Slack discussion for more context. Our Backstage instance configuration used for development is available here.

              Unassigned Unassigned
              skosina@redhat.com Simon Kosina
              RHIDP - Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: