vite-plugin-node icon indicating copy to clipboard operation
vite-plugin-node copied to clipboard

Configuring https server results in an exception

Open metalmarker opened this issue 2 years ago • 6 comments

I'm trying to configure Vite (express) to run https on localhost using these methods.

The problem is that when vite-plugin-node is active, I'm getting this error: `ERROR [Uncaught exception] Cannot read properties of undefined (reading 'readable')

Stack: TypeError: Cannot read properties of undefined (reading 'readable') at IncomingMessage._read (node:http_incoming:214:19) at IncomingMessage.Readable.read (node:internal/streams/readable:487:10) at resume (node:internal/streams/readable:987:12) at processTicksAndRejections (node:internal/process/task_queues:83:21)`

Perhaps that can be accomplished by writing a custom adapter?

metalmarker avatar May 30 '23 04:05 metalmarker

+1

Ami777 avatar Jul 26 '23 10:07 Ami777

Same here, did you find a solution?

Gobbo89 avatar Jan 30 '24 03:01 Gobbo89

Same here, did you find a solution?

Haven't found a clean solution, instead I've used local-ssl-proxy as a workaround.

metalmarker avatar Jan 30 '24 18:01 metalmarker