diff --git a/packages/blink/package.json b/packages/blink/package.json index fa5aaa5..5bec004 100644 --- a/packages/blink/package.json +++ b/packages/blink/package.json @@ -1,6 +1,6 @@ { "name": "blink", - "version": "1.1.27", + "version": "1.1.28", "description": "Blink is a tool for building and deploying AI agents.", "type": "module", "bin": { diff --git a/packages/blink/src/react/use-devhook.ts b/packages/blink/src/react/use-devhook.ts index 2c660d4..4ab2e31 100644 --- a/packages/blink/src/react/use-devhook.ts +++ b/packages/blink/src/react/use-devhook.ts @@ -66,14 +66,13 @@ export default function useDevhook(options: UseDevhookOptions) { // Ignore errors reading lock info } - options.logger.error( - "system", + // don't use logger since it's not guaranteed to print before exiting + console.error( chalk.red( `\nError: Another ${chalk.bold("blink dev")} process is already running in this directory${pidMessage}.` ) ); - options.logger.error( - "system", + console.error( chalk.red(`Please stop the other process and try again.\n`) ); process.exit(1);