Skip to content

Error during Docker deployment, api ,Cannot find module #869

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

Open
weilichao opened this issue May 9, 2025 · 2 comments
Open

Error during Docker deployment, api ,Cannot find module #869

weilichao opened this issue May 9, 2025 · 2 comments

Comments

@weilichao
Copy link

When deploying Docker, the backend reports an error, reflyai/refly-api:latest container keeps restarting infinitely while other containers are running normally. The deployment was done using the commands:
cd deploy/docker
cp ../../apps/api/.env.example .env # copy the example api env file
docker compose up -d

and docker logs error:
"""
Script executed successfully.
node:internal/modules/cjs/loader:1228
throw err;
^

Error: Cannot find module '/app/apps/api/dist/server/main.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:173:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}

Node.js v20.18.1
"""

@LarryGuan
Copy link

Yes, me too

@luojiyin1987
Copy link
Contributor

#854

Do you try it ?

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

3 participants