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

⚠️ Issue: Cannot find module '/app/dist/server/entry.mjs' #8464

Closed
Dopv9x opened this issue Jun 7, 2024 · 1 comment
Closed

⚠️ Issue: Cannot find module '/app/dist/server/entry.mjs' #8464

Dopv9x opened this issue Jun 7, 2024 · 1 comment

Comments

@Dopv9x
Copy link

Dopv9x commented Jun 7, 2024

i have a example with AstroJS with this my config
--------astro.config.mjs----------
Screenshot 2024-06-07 at 17 57 31
-------- and Dockerfile-----------
Screenshot 2024-06-07 at 17 58 30


problem is after build. my /dist folder don't have server folder so when I run docker , i received error

node:internal/modules/cjs/loader:1143 2024-06-07 17:50:30 throw err; 2024-06-07 17:50:30 ^ 2024-06-07 17:50:30 2024-06-07 17:50:30 Error: Cannot find module '/app/dist/server/entry.mjs' 2024-06-07 17:50:30 at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15) 2024-06-07 17:50:30 at Module._load (node:internal/modules/cjs/loader:981:27) 2024-06-07 17:50:30 at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12) 2024-06-07 17:50:30 at node:internal/main/run_main_module:28:49 { 2024-06-07 17:50:30 code: 'MODULE_NOT_FOUND', 2024-06-07 17:50:30 requireStack: [] 2024-06-07 17:50:30 } 2024-06-07 17:50:30 2024-06-07 17:50:30 Node.js v18.20.3

@sarah11918
Copy link
Member

Hi there! This space is for issues with our documentation site content and functionality. Unfortunately, we are not able to offer support for your project here.

For support, please visit our Discord at https://astro.build/chat ! People will be happy to help with your project there!

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

No branches or pull requests

2 participants