Closed alexadrien closed 2 months ago
I am unable to run the demo you provided with version v21.7.1 of node.js, I think you can seek help under the Remix repository.
> remix vite:dev
➜ Local: https://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
10:01:48 [vite] Internal server error: Headers.set: ":method" is an invalid header name.
at webidl.errors.exception (node:internal/deps/undici/undici:2414:14)
at webidl.errors.invalidArgument (node:internal/deps/undici/undici:2425:28)
at _Headers.set (node:internal/deps/undici/undici:3038:31)
at fromNodeHeaders (C:\Users\wei24\Downloads\httpsbugrepro-master\node_modules\@remix-run\dev\dist\vite\node-adapter.js:30:17)
at Object.fromNodeRequest (C:\Users\wei24\Downloads\httpsbugrepro-master\node_modules\@remix-run\dev\dist\vite\node-adapter.js:45:14)
at nodeHandler (C:\Users\wei24\Downloads\httpsbugrepro-master\node_modules\@remix-run\dev\dist\vite\plugin.js:840:39)
at C:\Users\wei24\Downloads\httpsbugrepro-master\node_modules\@remix-run\dev\dist\vite\plugin.js:844:21
Thanks for your answer! Closing this issue
Describe the bug
Vite dev server is showing a
UnsupportedWarning
in the console when the dev server starts.Reproduction
I created a new Remix project using
npx create-remix@latest .
and then I installedvite-plugin-mkcert
. You can find the bare-minimum repository here : https://github.com/alexadrien/httpsbugreproWhen running
npm run dev
, the warning is displayed :System Info
Output of
npx envinfo --system --npmPackages vite,vite-plugin-mkcert --binaries --browsers
:Used package manager: npm
Logs
Do you have any idea on how to solve this warning ?
Thanks for the plugin, it's amazing to easily have https on dev environment !!