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

Node.js version issue about running ch04/access-log #69

Open
junepil opened this issue Oct 12, 2024 · 1 comment
Open

Node.js version issue about running ch04/access-log #69

junepil opened this issue Oct 12, 2024 · 1 comment

Comments

@junepil
Copy link

junepil commented Oct 12, 2024

Exercise
ch04/exercises/access-log

Problem
While doing the exercise in the book I found out that the container that i ran using the image which is made by Dockerfile in the git repository immediately exits. So I inspect the container while using -it option and the following is what I found.

1. winston-transport npm package requires globalThis object

image

2. globalThis object is available from node v12.0.0

image

3. The node image that diamol/node uses is node v10.16.0

image

Docker version
Please run docker version and paste the output.
image

Code version
image

Additional context
I think it's related to the update of winston-transport package and found the similar issue at it's repo.

Related issues

@ChoiWheatley
Copy link

@hanu9257 Thanks, adding "winston-transport": "4.3.0" as dependency resolves the error! 🥹

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