diamol icon indicating copy to clipboard operation
diamol copied to clipboard

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

Open junepil opened this issue 1 year ago • 1 comments

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

  • https://github.com/winstonjs/winston-transport/issues/247

junepil avatar Oct 12 '24 08:10 junepil

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

ChoiWheatley avatar Oct 14 '24 14:10 ChoiWheatley