Error: write after end
at writeAfterEnd (D:\Code\Github\demo-ts\node_modules\readable-stream\lib\_stream_writable.js:288:12)
at PassThrough.Writable.write (D:\Code\Github\demo-ts\node_modules\readable-stream\lib\_stream_writable.js:332:20)
at File.log (D:\Code\Github\demo-ts\node_modules\winston\lib\winston\transports\file.js:158:34)
at File._write (D:\Code\Github\demo-ts\node_modules\winston-transport\index.js:81:19)
at doWrite (D:\Code\Github\demo-ts\node_modules\readable-stream\lib\_stream_writable.js:428:64)
at writeOrBuffer (D:\Code\Github\demo-ts\node_modules\readable-stream\lib\_stream_writable.js:417:5)
at File.Writable.write (D:\Code\Github\demo-ts\node_modules\readable-stream\lib\_stream_writable.js:334:11)
at DerivedLogger.ondata (D:\Code\Github\demo-ts\node_modules\readable-stream\lib\_stream_readable.js:619:20)
at emitOne (events.js:121:20)
at DerivedLogger.emit (events.js:211:7)
createConnection({
type: 'postgres',
host: connectionOptions.host,
port: connectionOptions.port,
username: connectionOptions.user,
password: connectionOptions.password,
database: connectionOptions.database,
synchronize: true,
logging: false,
entities: [
'dist/entity/**/*.js'
],
extra: {
ssl: config.dbsslconn, // if not development, will use SSL
}
})