feathers
feathers copied to clipboard
Express HTTPS Fails
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)
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));