lazywithclass / winston-cloudwatch

Send logs to Amazon Cloudwatch using Winston.
MIT License
258 stars 104 forks source link

SyntaxError: Unexpected token '?' #207

Open mjain79 opened 1 year ago

mjain79 commented 1 year ago

When I added import WinstonCloudWatch from 'winston-cloudwatch';

Getting below issue image

MichaelLeeHobbs commented 1 year ago

Update to nodejs 14 or higher

ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing