cli icon indicating copy to clipboard operation
cli copied to clipboard

Deno dev server crashes as server rebuilds

Open IskandarAlex2 opened this issue 6 months ago • 1 comments

Nuxt version: v4.0.1 Running with NUXT_SOCKET=0

When I opened the developer tools menu that "The request has been cancelled." error come up and caused the dev server to rebuild the server and client. But, when it did (even when just updating nuxt.config.ts) the .nuxt/dev directory just disappear and somehow crashed the whole thing.

 ERROR  [unhandledRejection] The request has been cancelled.                                                                                                              7:23:31 PM

    at ext:deno_fetch/23_request.js:287:11
    at ext:deno_http/00_serve.ts:286:61
    at eventLoopTick (ext:core/01_core.js:178:7)

  ➜ DevTools: press Shift + Alt + D in the browser (v2.6.2)                                                                                                               7:23:32 PM

Runtime config option `public` may not be able to be serialized.
✔ Vite client built in 42ms                                                                                                                                              7:23:33 PM
✔ Vite server built in 39ms                                                                                                                                              7:23:33 PM
error: Uncaught NotFound: No such file or directory (os error 2) about ["/home/iskandaralex2/Git/Saihex/public_website_v2/.nuxt/dev"]
    at new FsWatcher (ext:runtime/40_fs_events.js:24:17)
    at Object.watchFs (ext:runtime/40_fs_events.js:74:10)
    at ext:deno_node/_fs/_fs_watch.ts:57:21
    at callback (ext:deno_web/02_timers.js:58:7)
    at eventLoopTick (ext:core/01_core.js:213:13)

sometimes, it may also just be the file itself

 ERROR  [unhandledRejection] The request has been cancelled.                                                                                                              7:38:15 PM

    at ext:deno_fetch/23_request.js:287:11
    at ext:deno_http/00_serve.ts:286:61
    at eventLoopTick (ext:core/01_core.js:178:7)

  ➜ DevTools: press Shift + Alt + D in the browser (v2.6.2)                                                                                                               7:38:16 PM

Runtime config option `public` may not be able to be serialized.
✔ Vite client built in 35ms                                                                                                                                              7:38:18 PM
✔ Vite server built in 33ms                                                                                                                                              7:38:18 PM
error: Uncaught NotFound: No such file or directory (os error 2) about ["/home/iskandaralex2/Isky/LocalDev/Denos/saihex-public-site-v2/.nuxt/dev/index.mjs.map"]
    at new FsWatcher (ext:runtime/40_fs_events.js:24:17)
    at Object.watchFs (ext:runtime/40_fs_events.js:74:10)
    at ext:deno_node/_fs/_fs_watch.ts:57:21
    at callback (ext:deno_web/02_timers.js:58:7)
    at eventLoopTick (ext:core/01_core.js:213:13)

And yes, I tried on two locations, one with git initialized and one without. Both starts with .nuxt removed.

IskandarAlex2 avatar Jul 22 '25 11:07 IskandarAlex2

so, I don't know what happened but it doesn't crash sometimes, but... it got stuck in rebuild loop

 ERROR  [unhandledRejection] The request has been cancelled.                                                                                                              3:03:10 PM

    at ext:deno_fetch/23_request.js:287:11
    at ext:deno_http/00_serve.ts:286:61
    at eventLoopTick (ext:core/01_core.js:178:7)

  ➜ DevTools: press Shift + Alt + D in the browser (v2.6.2)                                                                                                               3:03:12 PM

ℹ Nuxt Icon server bundle mode is set to local                                                                                                                           3:03:12 PM
Runtime config option `nitro.routeRules./_fonts/**.cache` may not be able to be serialized.
Runtime config option `public` may not be able to be serialized.
Runtime config option `icon` may not be able to be serialized.
✔ Vite client built in 32ms                                                                                                                                              3:03:20 PM
✔ Vite server built in 47ms                                                                                                                                              3:03:20 PM
✔ Nuxt Nitro server built in 1032ms                                                                                                                                nitro 3:03:21 PM
ℹ Vite client warmed up in 80ms                                                                                                                                          3:03:21 PM
ℹ Vite server warmed up in 114ms                                                                                                                                         3:03:21 PM
ℹ .nuxt/dist directory has been removed. Restarting Nuxt...                                                                                                              3:03:26 PM
  ➜ DevTools: press Shift + Alt + D in the browser (v2.6.2)                                                                                                               3:03:26 PM

ℹ Nuxt Icon server bundle mode is set to local                                                                                                                           3:03:26 PM

 WARN  Runtime config option nitro.routeRules./_fonts/**.cache may not be able to be serialized.                                                                          3:03:33 PM


 WARN  Runtime config option public may not be able to be serialized.                                                                                                     3:03:33 PM


 WARN  Runtime config option icon may not be able to be serialized.                                                                                                       3:03:33 PM

✔ Vite client built in 11ms                                                                                                                                              3:03:42 PM
✔ Vite server built in 18ms                                                                                                                                              3:03:42 PM
.nuxt/dist directory has been removed. Restarting Nuxt...
  ➜ DevTools: press Shift + Alt + D in the browser (v2.6.2)                                                                                                               3:03:43 PM

ℹ Nuxt Icon server bundle mode is set to local                                                                                                                           3:03:43 PM
✔ Nuxt Nitro server built in 677ms                                                                                                                                 nitro 3:03:44 PM
ℹ Vite client warmed up in 4ms                                                                                                                                           3:03:44 PM
ℹ .nuxt/dist directory has been removed. Restarting Nuxt...                                                                                                              3:03:44 PM
ℹ Vite server warmed up in 270ms                                                                                                                                         3:03:44 PM
  ➜ DevTools: press Shift + Alt + D in the browser (v2.6.2)                                                                                                               3:03:44 PM

ℹ Nuxt Icon server bundle mode is set to local                                                                                                                           3:03:44 PM
Runtime config option `nitro.routeRules./_fonts/**.cache` may not be able to be serialized.
Runtime config option `public` may not be able to be serialized.
Runtime config option `icon` may not be able to be serialized.

 WARN  Runtime config option nitro.routeRules./_fonts/**.cache may not be able to be serialized.                                                                          3:03:52 PM


 WARN  Runtime config option public may not be able to be serialized.                                                                                                     3:03:52 PM


 WARN  Runtime config option icon may not be able to be serialized.                                                                                                       3:03:52 PM

✔ Vite client built in 20ms                                                                                                                                              3:03:58 PM
✔ Vite server built in 21ms                                                                                                                                              3:03:58 PM
✔ Nuxt Nitro server built in 624ms                                                                                                                                 nitro 3:04:00 PM
ℹ Vite client warmed up in 4ms                                                                                                                                           3:04:00 PM
.nuxt/dist directory has been removed. Restarting Nuxt...
ℹ Vite server warmed up in 358ms                                                                                                                                         3:04:00 PM
  ➜ DevTools: press Shift + Alt + D in the browser (v2.6.2)                                                                                                               3:04:01 PM

ℹ Nuxt Icon server bundle mode is set to local                                                                                                                           3:04:01 PM
ℹ Compiled plugins.server.mjs in 13718.87ms                                                                                                                         nuxt 3:04:06 PM
ℹ Compiled plugins.client.mjs in 13724.83ms                                                                                                                         nuxt 3:04:06 PM
ℹ Compiled types/plugins.d.ts in 13726.6ms                                                                                                                          nuxt 3:04:06 PM
Runtime config option `nitro.routeRules./_fonts/**.cache` may not be able to be serialized.
Runtime config option `public` may not be able to be serialized.
Runtime config option `icon` may not be able to be serialized.

and it will continue this until something failed like the file watcher

IskandarAlex2 avatar Jul 26 '25 07:07 IskandarAlex2