From cca34481cc3de3217c5b94d1a81b648b24340e31 Mon Sep 17 00:00:00 2001 From: twlite <46562212+twlite@users.noreply.github.com> Date: Tue, 16 Sep 2025 20:13:16 +0545 Subject: [PATCH] fix: error message for invalid cwd --- packages/commandkit/src/commandkit.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/commandkit/src/commandkit.ts b/packages/commandkit/src/commandkit.ts index c808816f..bc747805 100644 --- a/packages/commandkit/src/commandkit.ts +++ b/packages/commandkit/src/commandkit.ts @@ -374,7 +374,8 @@ export class CommandKit extends EventEmitter { throw new Error( 'CommandKit could not determine the application directory. ' + 'This issue is common when you are not using the `commandkit dev` command to start the project. ' + - 'You can either use `commandkit dev` to start the project, or set the `COMMANDKIT_IS_CLI=true` environment variable (Note that adding this to `.env` file may not work).', + 'You can either use `commandkit dev` to start the project, or set the `COMMANDKIT_IS_CLI=true` environment variable (Note that adding this to `.env` file may not work). ' + + 'If you are trying to start the production build, make sure your current working directory is the directory where `commandkit.config.ts` file is located.', ); }