-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed
Description
I'm using React Router as a...
framework
Reproduction
To recreate this issue simply install the basic-ssl vite plugin and configure it within vite. Then startup the server with react-router dev. Make a secure request to your application and observe the warning in stderr.
sample vite config (vite.config.ts):
import { reactRouter } from "@react-router/dev/vite";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import basicSsl from "@vitejs/plugin-basic-ssl";
export default defineConfig({
plugins: [
tailwindcss(),
reactRouter(),
tsconfigPaths(),
basicSsl({ name: "test" }),
],
});
System Info
System:
OS: macOS 15.4.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 4.97 GB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.19.1 - ~/.nvm/versions/node/v20.19.1/bin/node
npm: 10.8.2 - ~/.nvm/versions/node/v20.19.1/bin/npm
pnpm: 10.4.1 - ~/Library/pnpm/pnpm
Browsers:
Chrome: 135.0.7049.97
Edge: 135.0.3179.85
Safari: 18.4
npmPackages:
@react-router/dev: ^7.5.1 => 7.5.1
@react-router/node: ^7.5.1 => 7.5.1
@react-router/serve: ^7.5.1 => 7.5.1
react-router: ^7.5.1 => 7.5.1
vite: ^5.4.11 => 5.4.18
Used Package Manager
npm
Expected Behavior
No warnings while using HTTPS connections with vite.
Actual Behavior
Running react-router in dev mode with SSL causes a warning to display to stderr.
(node:30103) UnsupportedWarning: Status message is not supported by HTTP/2 (RFC7540 8.1.2.4)
(Use `node --trace-warnings ...` to show where the warning was created)