TSError: ⨯ Unable to compile TypeScript
app/logger.ts (44,19): This expression is not constructable.
Type 'typeof WinstonCloudwatch' has no construct signatures. (2351)
code:
import * as WinstonCloudwatch from 'winston-cloudwatch';
import winston from 'winston';
import pkg from '../package.json';
winston.add(new WinstonCloudwatch({
logGroupName: pkg.name,
logStreamName: 'app',
}));
Full error:
code:
Runnng typescript@5 and Nodejs 14