Repository navigation
ERR_REQUIRE_ESM error when running application inside Docker #1228
samsurya336
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi everyone, I followed this repo to setup nodemailer for my NestJS application.
And I did
And the application starts fine locally, no issues. Running as expected on my local machine.
But the error occurs when we try to run the application via Docker.
Note: Both my local machine & Docker image contains the same node & yarn version I cross checked it
Local machine:
OS: macOS sonoma
node: 18.20.3
yarn: 1.22.19
Below is the Error:
Dockerfile.dev
package.json
tsconfig.json
Docker only throw error after I installed
When I remove those packages & Build my image & then run it. No Error occurs.
What could be the possible issue, could anyone help we with this.
Thanks in advance.
All reactions