Node.js https.createServer throws TypeError: listener must be a function
Where do you assign https
? It looks like you’re probably requiring http
, not https
. http.createServer
doesn’t accept options like https.createServer
.
Where do you assign https
? It looks like you’re probably requiring http
, not https
. http.createServer
doesn’t accept options like https.createServer
.