#36404·nuxt

`nuxt dev` 在热启动期间收到第一个请求时,从 `fetch.server.mjs` 中返回 `Cannot find module 'ofetch'` 的响应,以处理每个 SSR 请求

作者: denismrte创建于 2026年9月24日更新于 2026年9月24日
标签nitro5.xpossible regression

When the first request reaches `nuxt dev` while it is still warming up, every SSR request fails with `Cannot find module 'ofetch' imported from 'virtual:nuxt:.nuxt%2Ffetch.server.mjs'` for the rest of the process's life (still `500` a minute later here). A restart recovers only when its first request comes late: a first request a few seconds after launch gets `200`, and so does the production build.