Skip to content

Type 'typeof WinstonCloudwatch' has no construct signatures` #221

Open
@thom-nic

Description

@thom-nic

Full error:

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',
  }));

Runnng typescript@5 and Nodejs 14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions