new-frontend-system-migration
New Frontend System Migration
This skill migrates a Backstage repository from the old frontend system (@backstage/core-plugin-api, @backstage/app-defaults) to the new one (@backstage/frontend-plugin-api, @backstage/frontend-defaults). It works in a repository with only plugins, with only an app, or with both.
Start here, then read only the reference you need:
references/app.md: migrating the app package, in a hybrid phase and then a full migrationreferences/plugin.md: migrating a plugin package, or part of one, either keeping old-system support or dropping it
Check the Backstage Version
The steps target Backstage 1.49 or later. Check backstage.json at the root of the repository, or the @backstage/* versions in package.json if there is no backstage.json. If the repository is older, upgrade it first, in its own change, with yarn backstage-cli versions:bump. Some of the helpers the steps use, such as convertLegacyAppOptions, don't exist in older versions, and since 1.46 old-system hooks such as useApp and useRouteRef work in the new system without compatWrapper.
Find What Needs Migrating
Check the repository before choosing a reference. Don't rely only on the user's description, and don't assume a folder layout: plugins can live in plugins/, in workspaces/*/plugins/, at the repository root, or elsewhere.