feathers icon indicating copy to clipboard operation
feathers copied to clipboard

Express HTTPS Fails

Open DowsingUK opened this issue 1 year ago • 1 comments

When trying to setup a https server on FeathersJS v5 (Dove) using Express I'm getting an error, can someone please help me here, thanks!

const httpsServer = https.createServer(credentials, app));

Argument of type 'Application' is not assignable to parameter of type 'RequestListener<typeof IncomingMessage, typeof ServerResponse> | undefined'.ts(2345)

DowsingUK avatar Apr 11 '24 02:04 DowsingUK

I found why this was happening, it was a TypeScript type error just adding as any fixed, thanks to @daffl for the help

const httpsServer = https.createServer(credentials, app as any));

DowsingUK avatar Apr 11 '24 14:04 DowsingUK