Closed
Description
Environment
- Operating System:
Linux
- Node Version:
v14.18.0
- Nuxt Version:
2.16.0-27226092.034b9901
- Package Manager:
Yarn
- Bundler:
Webpack
- User Config:
ssr
,buildModules
- Runtime Modules:
-
- Build Modules:
@nuxt/bridge@3.0.0-27234503.d5127e9
Describe the bug and expected behavior
nuxi build
fails with ssr: false
. Output:
start Building server... 00:26:02
ERROR Rollup error: Could not load .nuxt/dist/server/server.mjs (imported by node_modules/@nuxt/nitro/dist/runtime/app/render.mjs): ENOENT: no such file or directory, open '.nuxt/dist/server/server.mjs'
ERROR Nuxt Build Error: Could not load .nuxt/dist/server/server.mjs (imported by node_modules/@nuxt/nitro/dist/runtime/app/render.mjs): ENOENT: no such file or directory, open '.nuxt/dist/server/server.mjs'
Steps to reproduce
- Set
ssr: false
innuxt.config.ts
. - Run (
npx
)nuxi build
in shell.
Additional context
My project doesn't need SSR, but needs "runtime config" with environment variables injected by Node.js.
Activity
tkofh commentedon Oct 27, 2021
This is also the case for Nuxt 3 (not bridge), should that be its own issue?
beocaca commentedon Nov 10, 2021
victorberland commentedon Nov 16, 2021
Considering this issue has been open for more than a month now without any progress on the matter, does anyone maybe know of a temporary fix that may work?
AllInOneYT commentedon Nov 16, 2021
you could turn off nitro temporary
124 remaining items