Skip to content

Commit 6d980ab

Browse files
authored
Merge pull request #521 from underctrl-io/fix-err-msg
fix: error message for invalid cwd
2 parents dd68490 + cca3448 commit 6d980ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/commandkit/src/commandkit.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ export class CommandKit extends EventEmitter {
374374
throw new Error(
375375
'CommandKit could not determine the application directory. ' +
376376
'This issue is common when you are not using the `commandkit dev` command to start the project. ' +
377-
'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).',
377+
'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). ' +
378+
'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.',
378379
);
379380
}
380381

0 commit comments

Comments
 (0)