From 76f490ee0f6e57414ad12fae185a470d12899a5b Mon Sep 17 00:00:00 2001 From: Jack Palmer Date: Thu, 19 May 2022 11:17:17 +0100 Subject: [PATCH] fix: Add resolution steps to warning Signed-off-by: Jack Palmer --- packages/cli/src/commands/start/startFrontend.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/cli/src/commands/start/startFrontend.ts b/packages/cli/src/commands/start/startFrontend.ts index 4c08ff6d5f..f6923632c8 100644 --- a/packages/cli/src/commands/start/startFrontend.ts +++ b/packages/cli/src/commands/start/startFrontend.ts @@ -44,7 +44,7 @@ export async function startFrontend(options: StartAppOptions) { if (problemPackages.length > 1) { console.log( chalk.yellow( - `⚠️ Some of the following packages may be outdated or have duplicate installations: + `⚠️ Some of the following packages may be outdated or have duplicate installations: ${uniq(problemPackages).join(', ')} `, @@ -52,7 +52,7 @@ export async function startFrontend(options: StartAppOptions) { ); console.log( chalk.yellow( - `⚠️ This can be resolved using the following command: + `⚠️ This can be resolved using the following command: yarn backstage-cli versions:check --fix `, @@ -73,10 +73,14 @@ export async function startFrontend(options: StartAppOptions) { if (appBaseUrl === backendBaseUrl) { console.log( chalk.yellow( - `⚠️ Conflict between app baseUrl and backend baseUrl: + `⚠️ Conflict between app baseUrl and backend baseUrl: - app.baseUrl: ${appBaseUrl} - backend.baseUrl: ${appBaseUrl} + app.baseUrl: ${appBaseUrl} + backend.baseUrl: ${appBaseUrl} + + Must have unique hostname and/or ports. + + This can be resolved by changing app.baseUrl and backend.baseUrl to point to their respective local development ports. `, ), );