lazywithclass / winston-cloudwatch

Send logs to Amazon Cloudwatch using Winston.
MIT License
260 stars 105 forks source link

Getting error cannot find module '@aws-sdk/client-cloudwatch-logs' #179

Closed vishwanath-awate closed 2 years ago

vishwanath-awate commented 2 years ago

Hi, I am suddenly getting error today "Cannot find module '@aws-sdk/client-cloudwatch-logs'". Have you guys changed anything in your dependency ?

lblo commented 2 years ago

Same here. @aws-sdk/client-cloudwatch-logs should not be added as dev dependencies.

mikeallisonJS commented 2 years ago

this caused a production headache today. I would assume this breaking dependency would have been a major version bump.

kdjervbr commented 2 years ago

Meanwhile I set "winston-cloudwatch": "=3.1.1" in package.json.

danshirley1 commented 2 years ago

Meanwhile I set "winston-cloudwatch": "=3.1.1" in package.json.

First thing I did also, just without the '='.

lazywithclass commented 2 years ago

Sorry about any problem the update did cause to your environments. I will look into this now.

lazywithclass commented 2 years ago

As per #180, you now need to have that dependency installed separately.

lazywithclass commented 2 years ago

I am going to republish this as v4.0.0 as it should've been in the first place.