Skip to content

Deno dev server crashes as server rebuilds #985

@IskandarAlex2

Description

@IskandarAlex2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions