From 080f25215fef083e172bc3aa6e071d982690d96b Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Mon, 25 Aug 2025 16:34:53 +0200 Subject: [PATCH] cli: fix nfs plugin template id -> pluginId Signed-off-by: Patrik Oldsberg --- .changeset/cool-games-rescue.md | 5 +++++ .../cli/templates/new-frontend-plugin/src/plugin.tsx.hbs | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .changeset/cool-games-rescue.md diff --git a/.changeset/cool-games-rescue.md b/.changeset/cool-games-rescue.md new file mode 100644 index 0000000000..3bed707eb7 --- /dev/null +++ b/.changeset/cool-games-rescue.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli': patch +--- + +Fixed the `new-frontend-plugin` template that was incorrectly passing `id` instead of `pluginId` to `createFrontendPlugin` and unnecessarily importing `React`. diff --git a/packages/cli/templates/new-frontend-plugin/src/plugin.tsx.hbs b/packages/cli/templates/new-frontend-plugin/src/plugin.tsx.hbs index 229a795f11..435f9d4d8e 100644 --- a/packages/cli/templates/new-frontend-plugin/src/plugin.tsx.hbs +++ b/packages/cli/templates/new-frontend-plugin/src/plugin.tsx.hbs @@ -1,4 +1,3 @@ -import React from 'react'; import { createFrontendPlugin, PageBlueprint, @@ -18,7 +17,7 @@ export const page = PageBlueprint.make({ }); export const {{ pluginVar }} = createFrontendPlugin({ - id: '{{pluginId}}', + pluginId: '{{pluginId}}', extensions: [page], routes: { root: rootRouteRef,