Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(bridge) nuxi build: Rollup error: Could not load .../server.mjs #320

Closed
HendrikJan opened this issue Apr 28, 2022 · 2 comments
Closed

(bridge) nuxi build: Rollup error: Could not load .../server.mjs #320

HendrikJan opened this issue Apr 28, 2022 · 2 comments

Comments

@HendrikJan
Copy link

Environment


  • Operating System: Linux
  • Node Version: v14.19.1
  • Nuxt Version: 2.16.0-27358576.777a4b7f
  • Package Manager: npm@8.6.0
  • Builder: webpack
  • User Config: rootDir, bridge, telemetry, nitro, head, css, plugins, components, buildModules, modules, compilerOptions, build, watchers, ssr
  • Runtime Modules: -
  • Build Modules: @nuxt/bridge@3.0.0-27498038.f18e68b

Reproduction

 ERROR  Rollup error: Could not load /home/haaiee/Projects/Docker/nuxt-bridge-error-demo/.nuxt/dist/server/server.mjs (imported by node_modules/@nuxt/bridge/dist/runtime/nitro/renderer.mjs): ENOENT: no such file or directory, open '/home/haaiee/Projects/Docker/nuxt-bridge-error-demo/.nuxt/dist/server/server.mjs'

Describe the bug

I try to build the server for production.
The command "npx nuxi build" gives the following output:

$ npx nuxi build
Nuxt CLI v3.0.0-rc.1-27517945.7e912e7                                                                                                                                                   15:06:19
Nuxt config loading...                                                                                                                                                                  15:06:20
ℹ Production build                                                                                                                                                                      15:06:21
ℹ Bundling only for client side                                                                                                                                                         15:06:21
ℹ Target: server                                                                                                                                                                        15:06:21
ℹ Using components loader to optimize imports                                                                                                                                           15:06:21
ℹ Discovered Components: .nuxt/components/readme.md                                                                                                                                     15:06:21
✔ Builder initialized                                                                                                                                                                   15:06:21
✔ Nuxt files generated                                                                                                                                                                  15:06:21

✔ Client
  Compiled successfully in 8.23s


Hash: 0ecae7b1302c37191fdd
Version: webpack 4.46.0
Time: 8233ms
Built at: 04/28/2022 3:06:29 PM
                         Asset       Size  Chunks                         Chunk Names
../server/client.manifest.json   12.3 KiB          [emitted]              
                    3d29764.js  384 bytes       2  [emitted] [immutable]  pages/test
                    69be080.js   2.29 KiB       3  [emitted] [immutable]  runtime
                    6c61874.js    218 KiB       1  [emitted] [immutable]  commons/app
                    7676bfd.js   44.3 KiB       0  [emitted] [immutable]  app
                      LICENSES  632 bytes          [emitted]              
                    caea502.js   72.3 KiB       4  [emitted] [immutable]  vendors/app
 + 1 hidden asset
Entrypoint app = 69be080.js 6c61874.js caea502.js 7676bfd.js
✔ Generated public .output/public                                                                                                                                                 nitro 15:06:29
start Building server...                                                                                                                                                          nitro 15:06:29

 ERROR  Rollup error: Could not load /home/haaiee/Projects/Docker/nuxt-bridge-error-demo/.nuxt/dist/server/server.mjs (imported by node_modules/@nuxt/bridge/dist/runtime/nitro/renderer.mjs): ENOENT: no such file or directory, open '/home/haaiee/Projects/Docker/nuxt-bridge-error-demo/.nuxt/dist/server/server.mjs'


 FATAL  Could not load /home/haaiee/Projects/Docker/nuxt-bridge-error-demo/.nuxt/dist/server/server.mjs (imported by node_modules/@nuxt/bridge/dist/runtime/nitro/renderer.mjs): ENOENT: no such file or directory, open '/home/haaiee/Projects/Docker/nuxt-bridge-error-demo/.nuxt/dist/server/server.mjs'

Additional context

No response

Logs

No response

@danielroe danielroe transferred this issue from nuxt/framework Apr 28, 2022
@HendrikJan
Copy link
Author

This issue is now handled in #27

@xqtian
Copy link

xqtian commented Oct 13, 2022

I have the same question ,how to resolve it ,please please help~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants