feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
14.97k stars 742 forks source link

Express HTTPS Fails #3462

Closed DowsingUK closed 1 month ago

DowsingUK commented 2 months ago

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 commented 2 months ago

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));