• Icon: Task Task
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • Dynamic Plugins
    • None

      After running yarn export-dynamic on a 1.29 Backstage plugin generated by the backstage create backend module cli, the following error is reported here:

       

      Error: Backend plugin is not valid for dynamic loading:
      it should either export a BackendFeature or BackendFeatureFactory as default export, or export a const dynamicPluginInstaller: 
      BackendDynamicPluginInstaller field as dynamic loading entrypoint
      

      This is as a result of a new[ change|https://backstage.io/docs/reference/backend-plugin-api.createbackendmodule]: createBackendModule() which now returns BackendFeatureCompat, not BackendFeature or BackendFeatureFactory as expected by the dynamic plugins cli

      To fix this, add BackendFeatureCompat in this check.

              rh-ee-jhe Jessica He
              rh-ee-jhe Jessica He
              RHDH Dynamic Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: