nuxt: ERROR [unhandledRejection] read ECONNRESET

Environment

  • Operating System: Linux
  • Node Version: v18.18.2
  • Nuxt Version: 3.7.4
  • CLI Version: 3.9.0
  • Nitro Version: 2.6.3
  • Package Manager: pnpm@8.9.2
  • Builder: -
  • User Config: app, devtools, modules, css, ui, colorMode, postcss
  • Runtime Modules: @nuxt/ui@2.9.0, @nuxt/image@1.0.0-rc.3
  • Build Modules: -

Reproduction

Sorry, I can’t share code due to corporate law… I hope you understand. 🙏

Describe the bug

When I am programming for a long time nuxt gives me that server error apparently and it is usually tedious because I have to start everything again

 Vite server hmr 17 files in 10811.276ms

 ERROR  [unhandledRejection] connect ECONNREFUSED 127.0.0.1:41119  10:57:18 AM

  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)

Additional context

No response

Logs

Vite server hmr 17 files in 10811.276ms

 ERROR  [unhandledRejection] connect ECONNREFUSED 127.0.0.1:41119  10:57:18 AM

  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)

About this issue

  • Original URL
  • State: open
  • Created 8 months ago
  • Comments: 62 (9 by maintainers)

Most upvoted comments

@danielroe I created a reproduction repo at this url:

https://github.com/JulienChampagnol/ReproduceNuxtElectronError/tree/main

Couldn’t make it to work on stackblitz, probably because of the electron window and security concerns I suppose. Hope this helps!

I can confirm this is happening to me as well, Node v20 and Nuxt v3.10.0

Same here

I can confirm this is happening to me as well, Node v20 and Nuxt v3.10.0

@danielroe Any news about this?

@danielroe could we just have an update, will you or anyone from the core team look at this anytime soon or should the community find a workaround on their own? Thanks for your answer.

Thanks for carving time to reproduce this @JulienChampagnol! 🎖️ More of a note, we’re not using nuxt-electron and yet we can still reproduce the issue. Based on previous answers, I believe others also have different setups that don’t necessarily overlap with Electron, making it seem like a base Nuxt thing.

When researching about it, there seem to be a lot of somewhat related issues: #26396 #25115 #24355 nuxt/image#1158 nuxt/cli#338 caoxiemeihao/nuxt-electron#71

Once again, I did a super simple project a few months ago (and linked issue)without any customizations or plugins. Just nuxt, vue and vue-router (installed by default). The only thing there is 3998 super simple components. that output a string and add count to the console. 100% error ERROR [unhandledRejection] in npm run dev

why is this issue closed if this problem is still relevant? just upgraded my project to the latest version with node 20.10 and facing the same issue

 ERROR  [unhandledRejection] read ECONNRESET

  at TCP.onStreamRead (node:internal/stream_base_commons:217:20)


 ERROR  [unhandledRejection] write after end

@Flashantik it seems like it might be a related issue, but (at least for me) I’m not experiencing any slowdown rendering anything. I get this error pretty much 100% of the time when running dev mode. Sometimes immediately, sometimes after a couple of minutes. It seems to possibly be triggered by saving files/hot reloads, but I can’t find any consistent pattern.

Edit: and the error is just the last part of the logs, like @Hibrix-net just posted

I’m able to develop for a little bit (usually only a minute or two), but at some point I’ll save a file, trigger a hot reload, and then I get this error:

 ✔ Nitro built in 448 ms                                                          

 
  ERROR  [unhandledRejection] socket hang up                                      

 
   at connResetException (node:internal/errors:787:14)
   at Socket.socketOnEnd (node:_http_client:519:23)
   at Socket.emit (node:events:526:35)
   at endReadableNT (node:internal/streams/readable:1589:12)
   at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
 
 
  ERROR  [unhandledRejection] connect ECONNREFUSED 127.0.0.1:61372                

 
   at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)

same,I get problem every time when i refresh browser, 100% reproducible 企业微信截图_17134072509976

same,I get problem every time when i refresh browser, 100% reproducible 企业微信截图_17134072509976

Yes, HMR never works for me due to this error. I always refresh manually during development.

I’m also still waiting for any news. Issue is still there 😬

I have the same issue upgrading nuxt from 3.10.3 -> 3.11.1 as @realityfilter commented, I downgraded my nitropack to 2.8.1 it’s solved my problem.

Version & Config

  • node : v18.19.1
  • nuxt: 3.11.1
  • pnpm: 8.15.5
  • Nuxt only client mode ssr: false

package.json

{
  ...
   "devDependencies": {
       "nuxt": "3.11.1",
    ....
  },
  "pnpm": {
    "overrides": {
      "nitropack": "2.8.1"
    }
  }
}

Thanks for carving time to reproduce this @JulienChampagnol! 🎖️ More of a note, we’re not using nuxt-electron and yet we can still reproduce the issue. Based on previous answers, I believe others also have different setups that don’t necessarily overlap with Electron, making it seem like a base Nuxt thing.

When researching about it, there seem to be a lot of somewhat related issues: https://github.com/nuxt/nuxt/issues/24355 https://github.com/nuxt/nuxt/issues/25115 https://github.com/nuxt/nuxt/issues/26396 https://github.com/nuxt/image/issues/1158 https://github.com/nuxt/cli/issues/335 https://github.com/nuxt/cli/issues/338 https://github.com/nuxt/cli/issues/346 https://github.com/caoxiemeihao/nuxt-electron/issues/71

same, why is this issue closed when no permanent and universal solution is provided?

I have the same problem

 ERROR  [unhandledRejection] connect ETIMEDOUT 127.0.0.1:55231

  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1247:16)

This does not solve my problem

nitro: {
    devProxy: {
      host: '127.0.0.1',
    },
  },

I believe this one is extremely difficult to reproduce and perhaps an issue somewhere with the local env setup. Also no custom HMR port defined this side.

This is one of the reasons I have not reported this myself. Even after completely reinstalling node pnpm this issue still occurs.

However @castrogarciajs perhaps this will help as a short term workaround

✔ Nitro built in 6575 ms                                                                                                                                                                                                                        nitro 11:52:46 PM
ℹ Vite client warmed up in 14274ms                                                                                                                                                                                                                    11:52:47 PM
(node:80030) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(Use `node --trace-warnings ...` to show where the warning was created)

 ERROR  [unhandledRejection] connect ETIMEDOUT 127.0.0.1:55605                                                                                                                                                                                         11:53:36 PM

  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)

This port will of course change every time you restart the dev server. My current workaround is to use http://127.0.0.1:55605/ which works then without any timeout issues

I think this perhaps relates to layers and directed at more complexed nuxt projects. With a clean install without any 3rd party modules or plugins this doesn’t happen.


Environment

  • Operating System: Darwin
  • Node Version: v18.18.1
  • Nuxt Version: 3.8.0
  • CLI Version: 3.9.1
  • Nitro Version: 2.7.0
  • Package Manager: pnpm@8.9.2
  • Builder: -
  • User Config: experimental, debug, dev, alias, runtimeConfig, extends, routeRules, srcDir, modules, sitemap, site, plugins, session, i18n, tailwindcss, typescript, build, vite, app, spaLoadingTemplate
  • Runtime Modules: @pinia/nuxt@0.4.11, @vueuse/nuxt@10.1.2, @sidebase/nuxt-session@0.2.7, @nuxtjs/i18n@8.0.0-rc.5, @nuxtseo/module@2.0.0-beta.15, nuxt-swiper@1.2.2, dayjs-nuxt@1.2.7, @dargmuesli/nuxt-cookie-control@6.4.6, unplugin-icons/nuxt, @nuxtjs/tailwindcss@6.8.0, nuxt-headlessui@1.1.4, nuxt-og-image@2.1.3, nuxt-simple-robots@3.1.6, nuxt-schema-org@3.0.1, nuxt-simple-sitemap@3.4.0
  • Build Modules: -

@Flashantik it seems like it might be a related issue, but (at least for me) I’m not experiencing any slowdown rendering anything. I get this error pretty much 100% of the time when running dev mode. Sometimes immediately, sometimes after a couple of minutes. It seems to possibly be triggered by saving files/hot reloads, but I can’t find any consistent pattern.

Edit: and the error is just the last part of the logs, like @Hibrix-net just posted

I’m able to develop for a little bit (usually only a minute or two), but at some point I’ll save a file, trigger a hot reload, and then I get this error:

 ✔ Nitro built in 448 ms                                                          

 
  ERROR  [unhandledRejection] socket hang up                                      

 
   at connResetException (node:internal/errors:787:14)
   at Socket.socketOnEnd (node:_http_client:519:23)
   at Socket.emit (node:events:526:35)
   at endReadableNT (node:internal/streams/readable:1589:12)
   at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
 
 
  ERROR  [unhandledRejection] connect ECONNREFUSED 127.0.0.1:61372                

 
   at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)

Same here

- Operating System: Linux
- Node Version:     v20.11.1
- Nuxt Version:     3.10.2
- CLI Version:      3.10.1
- Nitro Version:    2.8.1
- Package Manager:  pnpm@8.15.3
- Builder:          -
- User Config:      devtools, modules, plugins, i18n, imports, css, quasar, nitro, routeRules, proxy, app, piniaPersistedstate
- Runtime Modules:  nuxt-quasar-ui@2.0.7, @pinia/nuxt@0.5.1, @nuxtjs/i18n@8.1.1, @vee-validate/nuxt@4.12.5, @nuxt-alt/proxy@2.5.8, @nuxtjs/eslint-module@4.1.0, @pinia-plugin-persistedstate/nuxt@1.2.0
- Build Modules:    -

Thanks for carving time to reproduce this @JulienChampagnol! 🎖️ More of a note, we’re not using nuxt-electron and yet we can still reproduce the issue. Based on previous answers, I believe others also have different setups that don’t necessarily overlap with Electron, making it seem like a base Nuxt thing.

When researching about it, there seem to be a lot of somewhat related issues: #26396 #25115 #24355 nuxt/image#1158 nuxt/cli#338 caoxiemeihao/nuxt-electron#71

Yes, this isn’t related with nuxt-electron it is a generic Nuxt issue.

I’ve tried updating Nitro and Nuxt versions as shared above but no solution worked, and this is affecting our entire team which also indicates it’s not a local config thing.

Running localhost in debug mode doesn’t raise anything fishy, yet the server breaks on the very first hot reload (also, client-only change).

vite:hmr [vue:update(template)] /Users/.../index.vue +0ms
ℹ hmr update /pages/.../index.vue, /assets/css/tailwind.css, /assets/css/tailwind.css?direct                                                                                                                                                                                2:46:20 PM
  connect:dispatcher viteTimeMiddleware  : /_nuxt/assets/css/tailwind.css?t=1711633580775 +16s
  connect:dispatcher viteCachedTransformMiddleware  : /_nuxt/assets/css/tailwind.css?t=1711633580775 +0ms
  connect:dispatcher viteBaseMiddleware  : /_nuxt/assets/css/tailwind.css?t=1711633580775 +0ms
  connect:dispatcher viteHMRPingMiddleware  : /_nuxt/assets/css/tailwind.css?t=1711633580775 +0ms
  connect:dispatcher handle  : /_nuxt/assets/css/tailwind.css?t=1711633580775 +0ms
  connect:dispatcher viteTransformMiddleware  : /_nuxt/assets/css/tailwind.css?t=1711633580775 +0ms
  connect:dispatcher viteTimeMiddleware  : /_nuxt/pages/.../index.vue?t=1711633580756 +1ms
  connect:dispatcher viteCachedTransformMiddleware  : /_nuxt/pages/.../index.vue?t=1711633580756 +0ms
  connect:dispatcher viteBaseMiddleware  : /_nuxt/pages/.../index.vue?t=1711633580756 +0ms
  connect:dispatcher viteHMRPingMiddleware  : /_nuxt/pages/.../index.vue?t=1711633580756 +0ms
  connect:dispatcher handle  : /_nuxt/pages/.../index.vue?t=1711633580756 +0ms
  connect:dispatcher viteTransformMiddleware  : /_nuxt/pages/.../index.vue?t=1711633580756 +0ms
  connect:dispatcher viteTimeMiddleware  : /_nuxt/assets/css/tailwind.css?t=1711633580756 +0ms
  connect:dispatcher viteCachedTransformMiddleware  : /_nuxt/assets/css/tailwind.css?t=1711633580756 +0ms
  connect:dispatcher viteBaseMiddleware  : /_nuxt/assets/css/tailwind.css?t=1711633580756 +0ms
  connect:dispatcher viteHMRPingMiddleware  : /_nuxt/assets/css/tailwind.css?t=1711633580756 +0ms
  connect:dispatcher handle  : /_nuxt/assets/css/tailwind.css?t=1711633580756 +0ms
  connect:dispatcher viteTransformMiddleware  : /_nuxt/assets/css/tailwind.css?t=1711633580756 +0ms
  vite:load 0.33ms [fs] /pages/.../index.vue +31s
  vite:load 11.03ms [fs] /assets/css/tailwind.css +10ms
                                                                                                                                                                                                                                                                                  2:46:20 PM

Source path: /Users/.../assets/css/tailwind.css                                                                                                                                                                           2:46:20 PM
Finding changed files: 67.255ms                                                                                                                                                                                                                                                   2:46:20 PM
  vite:cache [memory] /node_modules/.cache/vite/client/deps/vue.js?v=5c6132d7 +16s
  vite:cache [memory] /components/.../....vue +1ms
  vite:cache [memory] /components/.../....vue +0ms
  vite:cache [memory] /composables/use-I18n.ts +0ms
  vite:cache [memory] ../../node_modules/.pnpm/nuxt@3.11.1_@parcel+watcher@2.1.0_@types+node@20.9.0_@unocss+reset@0.58.7_eslint@8.41.0_float_toadio74hgnvq2wmrroqs3y4iy/node_modules/nuxt/dist/pages/runtime/composables.js?v=5c6132d7 +0ms
  vite:cache [memory] /stores/.../....ts +0ms
  vite:cache [memory] ../../node_modules/.pnpm/@nuxt+devtools@1.0.4_nuxt@3.11.1/node_modules/@nuxt/devtools/dist/runtime/function-metrics-helpers.mjs?v=5c6132d7 +0ms
  vite:cache [memory] /node_modules/.cache/vite/client/deps/@unhead_vue.js?v=5c6132d7 +0ms
  vite:cache [memory] ../../node_modules/.pnpm/@vueuse+core@10.5.0_vue@3.3.8/node_modules/@vueuse/core/index.mjs?v=5c6132d7 +0ms
  vite:cache [memory] /types/filters.ts +0ms
  vite:cache [memory] plugin-vue:export-helper +0ms
  vite:cache [memory] /types/.../....ts +0ms
  vite:cache [memory] /types/firebase.ts +0ms
  vite:hmr [self-accepts] pages/.../index.vue +136ms
  vite:import-analysis 1.35ms [13 imports rewritten] pages/.../index.vue +31s
  vite:transform 110.11ms /pages/.../index.vue +31s
  vite:time 110.73ms /pages/.../index.vue +16s
Reading changed files: 24.275ms                                                                                                                                                                                                                                                   2:46:20 PM
Sorting candidates: 0.033ms                                                                                                                                                                                                                                                       2:46:20 PM
Generate rules: 0.179ms                                                                                                                                                                                                                                                           2:46:20 PM
Build stylesheet: 0.001ms                                                                                                                                                                                                                                                         2:46:20 PM
Potential classes:  101                                                                                                                                                                                                                                                           2:46:20 PM
Active contexts:  1                                                                                                                                                                                                                                                               2:46:20 PM
JIT TOTAL: 114.074ms                                                                                                                                                                                                                                                              2:46:20 PM
                                                                                                                                                                                                                                                                                  2:46:20 PM

  vite:hmr [self-accepts] assets/css/tailwind.css +101ms
  vite:import-analysis 0.72ms [0 imports rewritten] assets/css/tailwind.css +101ms
  vite:transform 198.06ms /assets/css/tailwind.css +98ms
  vite:time 208.91ms /assets/css/tailwind.css +99ms
  vite:time 210.15ms /assets/css/tailwind.css +0ms
[nitro] types:extend: 0.011ms                                                                                                                                                                                                                                                     2:46:21 PM
[nitro] rollup:reload: 231.992ms                                                                                                                                                                                                                                                  2:46:21 PM
✔ Nitro config hot reloaded!                                                                                                                                                                                                                                                     2:46:21 PM
[nuxt] builder:watch: 253.588ms                                                                                                                                                                                                                                                   2:46:21 PM
✔ Nuxt Nitro server built in 521 ms                                                                                                                                                                                                                                        nitro 2:46:21 PM
[nitro] compiled: 0.212ms                                                                                                                                                                                                                                                         2:46:21 PM
[nitro-runtime] close: 0.023ms

 ERROR  [unhandledRejection] connect ECONNREFUSED 127.0.0.1:50943                                                                                                                                                                                                                 2:46:21 PM

  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)

I’m not sure what else to try in this case 🤔

https://github.com/nuxt/nuxt/issues/25115 also seems related.

I do not have a app.buildAssetsDir set. So in my case this is not the culprit.

Do you have any plugins that may be setting that? In my case, nuxt-electron is setting it.

Same here. Mac with node latest v18 and v20. The only workaround I found working is downgrading nitropack to v2.8.1. Thanks for the hint.

This if almost certainly not a Nuxt issue. It might be a nitro one.

Would you see if you can reproduce this in pure Nitro (reproduction sandbox), and if so, raise there? 🙏

as I already described this in another issue (https://github.com/nuxt/cli/issues/335), it is unlikely that the problem is only in nitro, since if you install nuxt@3.6.5 the nitro version remains fresh Nitro@2.8.1 however the problem goes away. Could there be a problem with the way nuxt interacts with nitro?

I have the same issue.

- Operating System: Darwin
- Node Version:     v20.11.0
- Nuxt Version:     3.10.3
- CLI Version:      3.10.1
- Nitro Version:    2.8.1
- Package Manager:  yarn@1.22.19
- Builder:          -
- User Config:      devtools, modules, css, plugins, app, router, auth, devServer, robots, colorMode, pinia, build, typescript, piniaPersistedstate, hooks, runtimeConfig
- Runtime Modules:  nuxt-icon@0.6.8, @nuxtjs/google-fonts@3.1.3, @formkit/auto-animate/nuxt@0.8.1, @pinia/nuxt@0.5.1, @pinia-plugin-persistedstate/nuxt@1.2.0, @nuxt/image@1.3.0, @nuxt/ui@2.14.1, @vueuse/nuxt@10.7.2, v-wave/nuxt, @sidebase/nuxt-auth@0.6.7, @nuxtjs/seo@2.0.0-rc.8
- Build Modules:    -

Following error after making changes in dev (yesterday):

 ERROR  [unhandledRejection] socket hang up                                                                                                                3:21:02 AM

  at connResetException (node:internal/errors:787:14)
  at Socket.socketOnEnd (node:_http_client:519:23)
  at Socket.emit (node:events:530:35)
  at endReadableNT (node:internal/streams/readable:1696:12)
  at process.processTicksAndRejections (node:internal/process/task_queues:82:21)


 ERROR  [unhandledRejection] connect ECONNREFUSED 127.0.0.1:51689                                                                                          3:21:02 AM

  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)

Today again:

 ERROR  [unhandledRejection] connect ECONNREFUSED 127.0.0.1:54862                                                                                          2:49:53 AM

  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)


 ERROR  [unhandledRejection] connect ECONNREFUSED 127.0.0.1:54862                                                                                          2:52:22 AM

  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16)


 ERROR  [unhandledRejection] connect ECONNREFUSED 127.0.0.1:54862                                                                                          2:52:22 AM

  at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) (repeated 3 times)

How i run the project? HOST=0 NODE_TLS_REJECT_UNAUTHORIZED=0 nuxt dev

  devServer: {
    https: {
      key: './ssl/localhost-key.pem',
      cert: './ssl/localhost.pem'
    }
  },

This does not solve my problem

nitro: {
    devProxy: {
      host: '127.0.0.1',
    },
  },

@Hibrix-net @max-lf I was able to reproduce the error on a simple application, it seems the problem is the number of requests. nuxt@3.6.5 works fine. https://github.com/nuxt/cli/issues/335

Are you having the same problem?

@productdevbook ummm thats strange overriding nitro devProxy should have worked for you 🤔 Can you share your nuxt config. Not sure it will make any difference but you can try directly with 127.0.0.1 instead of localhost. Also add it at the end of your config.

export default defineNuxtConfig({
  // ... nuxt config
  nitro: {
    devProxy: {
      host: '127.0.0.1',
    },
  },
})

This seems to have solved it for me. Thank you very much!

This was the issue and I have found a solution which works perfectly 😁 Try adding this to your nuxt config. On my side there are no more timeouts even after several refreshes!

nitro: {
  devProxy: {
    host: 'localhost',
  },
},

@bitsnaps That’s not valid code on the server. Wrap it in if (import.meta.client) or check with typeof Stripe or access globalThis.Stripe.

same, why is this issue closed when no permanent and universal solution is provided?

It’s been months that I’m asking myself the exact same thing… (they blame Nitro btw)

I do not have a app.buildAssetsDir set. So in my case this is not the culprit.

In that case it is an issue either in nuxt/cli or in how the cli interacts with nitro.

cc: @pi0

Not sure why they seem to ignore this issue…

Same here

- Operating System: Linux
- Node Version:     v20.11.1
- Nuxt Version:     3.10.2
- CLI Version:      3.10.1
- Nitro Version:    2.8.1
- Package Manager:  pnpm@8.15.3
- Builder:          -
- User Config:      devtools, modules, plugins, i18n, imports, css, quasar, nitro, routeRules, proxy, app, piniaPersistedstate
- Runtime Modules:  nuxt-quasar-ui@2.0.7, @pinia/nuxt@0.5.1, @nuxtjs/i18n@8.1.1, @vee-validate/nuxt@4.12.5, @nuxt-alt/proxy@2.5.8, @nuxtjs/eslint-module@4.1.0, @pinia-plugin-persistedstate/nuxt@1.2.0
- Build Modules:    -

I found that this error occurs when developing in a devcontainer.

This was working up until v3.7.0 so I suspect it has something to do with the Nitro 2.6 update.

I also had this error in version 3.7 and I was not interested because I was suspicious of the db. now 3.8 has the same error.

@productdevbook I don’t think this issue is related to the db connection. In our headless e-commerce stack we are using nitro connecting through to Laravel

Most of our endpoints use useAsyncData catchall to hit nuxt server routes. Then we use $fetch to send server-side for example using our custom composable.

This was working up until v3.7.0 so I suspect it has something to do with the Nitro 2.6 update.

import type { H3Event } from 'h3'
import { getCookie } from 'h3'

const baseUrl = process.env.NUXT_APP_HUB_BASE_URL
interface INitroApiOptions {
  event: H3Event
  endpoint: string
  action?: string
  requiresAuth?: boolean
  method?: any
  contentType?: string
  query?: any
}

export default function useNitroApi(options: INitroApiOptions, data?: any): Promise<any> {
  const {
    event,
    endpoint,
    action,
    requiresAuth = false,
    method = 'GET',
    contentType = 'application/json',
    query = {},
  } = options
  const headers: any = {
    Accept: contentType,
    'Language-Locale': getCookie(event, 'i18n_redirected'),
    'Content-Type': contentType,
  }
  if (requiresAuth) {
    headers.Authorization = `Bearer ${getCookie(event, 'token') || ''}`
  }

  const opts: any = {
    method,
    headers,
  }

  if (!['show', 'index', 'destroy'].includes(<string>action)) {
    opts.body = data ? JSON.stringify(data) : undefined
    opts.query = query
  }

  return $fetch(`${baseUrl}${endpoint}`, opts)
}

@danielroe

Hello,

It is impossible to make a reproduction, because it is an error that happens during development and I cannot capture the exact moment of the error. I just have to close everything again.

I don’t have a custom port, I work with the default nuxt configuration.

I forgot to mention the most important part: The code will work the first time I start the server, but it freezes whenever I make a change and save it. However, it only freezes when I make a change on the server-side, not on the client-side.

It is extremely annoying to Ctrl+C and restart every time I make a change.