diamol
diamol copied to clipboard
Node.js version issue about running ch04/access-log
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
2. globalThis object is available from node v12.0.0
3. The node image that diamol/node uses is node v10.16.0
Docker version
Please run docker version and paste the output.
Code version
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
@hanu9257 Thanks, adding "winston-transport": "4.3.0" as dependency resolves the error! :face_holding_back_tears: