Open net-tech opened 1 year ago
This worked for me:
import SentryWinston from 'winston-transport-sentry-node';
const WinstonSentry = SentryWinston.default
const logger = createLogger({
transports: [
new transports.Console(),
...
new WinstonSentry(options)
],
});
@sergioisidoro that unfortunately didn't work for me, but this code compiled and ran okay:
import * as SentryWinston from 'winston-transport-sentry-node';
const Sentry = SentryWinston.default;
Hi there, how are you supposed to import the transport when moduleResolution is set to node next, and ESNext is being used? I tried
However that results in This expression is not constructable.