From 72ec154393ece656cd4bfab6dde8a6e4da34bbec Mon Sep 17 00:00:00 2001 From: Jianxing Date: Wed, 24 Sep 2025 13:36:56 +0800 Subject: [PATCH 1/2] fix: Triggering a loop restart issue when saving the nuxt.config.ts file --- packages/nuxi/src/dev/utils.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nuxi/src/dev/utils.ts b/packages/nuxi/src/dev/utils.ts index 9cc1375ca..ba61d60b3 100644 --- a/packages/nuxi/src/dev/utils.ts +++ b/packages/nuxi/src/dev/utils.ts @@ -160,7 +160,9 @@ export class NuxtDevServer extends EventEmitter { async load(reload?: boolean, reason?: string) { try { + this.closeWatchers(); await this._load(reload, reason) + this._watchConfig(); this._loadingError = undefined } catch (error) { From 91beffe6de517612fcc91dada6f1bf873f6e724e Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 24 Sep 2025 07:19:29 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- packages/nuxi/src/dev/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxi/src/dev/utils.ts b/packages/nuxi/src/dev/utils.ts index ba61d60b3..944454f41 100644 --- a/packages/nuxi/src/dev/utils.ts +++ b/packages/nuxi/src/dev/utils.ts @@ -160,9 +160,9 @@ export class NuxtDevServer extends EventEmitter { async load(reload?: boolean, reason?: string) { try { - this.closeWatchers(); + this.closeWatchers() await this._load(reload, reason) - this._watchConfig(); + this._watchConfig() this._loadingError = undefined } catch (error) {