Skip to content

Commit 612f2b6

Browse files
kuco23claude
andcommitted
claude:chore: broaden vite scripts' NODE_OPTIONS to --no-warnings
A second Node warning appeared on `yarn dev`: UnsupportedWarning: Status message is not supported by HTTP/2 (RFC7540 8.1.2.4) This fires when a middleware reflexively sets `statusMessage` on an HTTP/2 response (HTTP/2 has no status messages per RFC 7540 §8.1.2.4); the browser negotiates HTTP/2 over the basic-ssl HTTPS the dev server hands out. Like DEP0169, the warning is informational and doesn't affect behaviour. `--no-deprecation` only filters Deprecation warnings, not UnsupportedWarnings. Switching to `--no-warnings` covers both (deprecation is a subset of warnings), so the dev/build/preview output stays clean against any current or future Node warning class. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 9d4f6e8 commit 612f2b6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
"packageManager": "yarn@1.22.22",
77
"homepage": "stakecore.org",
88
"scripts": {
9-
"dev": "NODE_OPTIONS=--no-deprecation vite",
10-
"build": "NODE_OPTIONS=--no-deprecation vite build",
9+
"dev": "NODE_OPTIONS=--no-warnings vite",
10+
"build": "NODE_OPTIONS=--no-warnings vite build",
1111
"clean": "vite clean",
1212
"lint": "eslint .",
13-
"preview": "NODE_OPTIONS=--no-deprecation vite preview",
13+
"preview": "NODE_OPTIONS=--no-warnings vite preview",
1414
"----------- openapi -----------------------": "",
1515
"openapi-fix": "sed -i \"s|BASE: *'',|BASE: 'https://backend.stakecore.org',|\" ./src/backendApi/core/OpenAPI.ts",
1616
"openapi-gen": "yarn openapi -i ./openapi.json -o ./src/backendApi && yarn openapi-fix",

0 commit comments

Comments
 (0)