From 5e0f98f578c3898c8c1382751f193559d7d71ad0 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Wed, 22 May 2024 16:02:24 +0300 Subject: [PATCH] fix(admin-sdk): error when admin needs build (#7401) Fix the error shown when admin is not built instructing the user to run the `build` command. --- packages/admin-next/admin-sdk/src/lib/serve.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/admin-next/admin-sdk/src/lib/serve.ts b/packages/admin-next/admin-sdk/src/lib/serve.ts index 235393eec8..1854149238 100644 --- a/packages/admin-next/admin-sdk/src/lib/serve.ts +++ b/packages/admin-next/admin-sdk/src/lib/serve.ts @@ -24,7 +24,7 @@ export async function serve(options: ServeOptions) { if (!indexExists) { throw new Error( - `Could not find the admin UI build files. Please run "medusa-admin build" or enable "autoRebuild" in the plugin options to build the admin UI.` + `Could not find the admin UI build files. Please run \`npm run build\` or \`yarn build\` command and try again.` ) }