You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying the export a package with @janus-idp/[email protected] package export-dynamic-plugin --clean fails with an error after updating backstage using yarn backstage-cli versions:bump --release 1.27.7:
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
Expected Behavior
@janus-idp/[email protected] package export-dynamic-plugin --clean should work as before.
Debugging
There has been an upstream change backstage/backstage#25098, which is potentially affecting the validate export detection logic of the CLI
Describe the bug
Trying the export a package with
@janus-idp/[email protected] package export-dynamic-plugin --clean
fails with an error after updating backstage usingyarn backstage-cli versions:bump --release 1.27.7
:Expected Behavior
@janus-idp/[email protected] package export-dynamic-plugin --clean
should work as before.Debugging
There has been an upstream change backstage/backstage#25098, which is potentially affecting the validate export detection logic of the CLI
backstage-plugins/packages/cli/src/commands/export-dynamic-plugin/backend-utils.ts
Lines 101 to 123 in 582cf36
Sadly this upstream change has been released as a patch release, so everyone locking to
^0.6.x
will soon get this change.Locking the version
"@backstage/backend-plugin-api": "0.6.18"
inside thepackage.json
of the respective plugin fixes the build.The text was updated successfully, but these errors were encountered: