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

Cannot find module app/dist #78

Open
ingdany opened this issue Nov 3, 2022 · 8 comments
Open

Cannot find module app/dist #78

ingdany opened this issue Nov 3, 2022 · 8 comments

Comments

@ingdany
Copy link

ingdany commented Nov 3, 2022

I am trying to run ahem through docker, the ahem-ssr-1 container is returning this kind of error, does anyone have an idea what I can do to solve it?

ad-hoc-email-server-ahem-ssr-1  | internal/modules/cjs/loader.js:965
ad-hoc-email-server-ahem-ssr-1  |   throw err;
ad-hoc-email-server-ahem-ssr-1  |   ^
ad-hoc-email-server-ahem-ssr-1  |
ad-hoc-email-server-ahem-ssr-1  | Error: Cannot find module '/app/dist'
ad-hoc-email-server-ahem-ssr-1  |     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:962:15)
ad-hoc-email-server-ahem-ssr-1  |     at Function.Module._load (internal/modules/cjs/loader.js:838:27)
ad-hoc-email-server-ahem-ssr-1  |     at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
@o4oren
Copy link
Owner

o4oren commented Nov 3, 2022 via email

@MoRoPoPi
Copy link

Have you found a solution meanwhile ? @ingdany

@maxime-guerin-biprep
Copy link

I am having the same issue

@o4oren
Copy link
Owner

o4oren commented Jan 4, 2023 via email

@maxime-guerin-biprep
Copy link

starting with node dist/universalServer inside the docker works

@o4oren
Copy link
Owner

o4oren commented Jan 5, 2023 via email

@maxime-guerin-biprep
Copy link

in the mean time i change the command of ahem-ssr in the docker-compoose.yml file with that :
ahem-ssr: image: o4oren/ahem:latest restart: always ports: - "4000:4000" command: ["bash","-c","node dist/universalServer"]

@mercredo
Copy link

in the mean time i change the command of ahem-ssr in the docker-compoose.yml file with that : ahem-ssr: image: o4oren/ahem:latest restart: always ports: - "4000:4000" command: ["bash","-c","node dist/universalServer"]

Yeah, that worked. Thx.

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

5 participants