You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use [email protected] because it's the last version compatible with [email protected], right? Version 3.x is not stable yet, it contains major bugs like (e.g. winstonjs/winston#1426). Anyway problem is that typing seems to be somehow wrong.
import {MongoDB} from "winston-mongodb";
TS2305: module has no exported member 'MongoDB'
import {transports} from "winston";
import "winston-mongodb";
new transports.MongoDB({});
TS2339: Property 'MongoDB' does not exists on type 'Transports'
import {transports} from "winston-mongodb";
new transports.MongoDB({});
TypeError: Cannot read property 'MongoDB' of undefined
How can I properly instantiate MongoDB transport in typescript? An example would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to use [email protected] because it's the last version compatible with [email protected], right? Version 3.x is not stable yet, it contains major bugs like (e.g. winstonjs/winston#1426). Anyway problem is that typing seems to be somehow wrong.
TS2305: module has no exported member 'MongoDB'
TS2339: Property 'MongoDB' does not exists on type 'Transports'
TypeError: Cannot read property 'MongoDB' of undefined
How can I properly instantiate MongoDB transport in typescript? An example would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: