[GH-ISSUE #558] <link rel=preload> missing as attribute in RSC framework bundle #115

Closed
opened 2026-05-06 12:37:21 +02:00 by BreizhHardware · 0 comments

Originally created by @jodaks on GitHub (Mar 16, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/558

Description

The framework bundle emits <link rel=preload> tags without a valid as attribute,
causing a browser console error on every page load.

Error

[Error] must have a valid as value
wf (framework-BsFTGslG.js:9:17874)
he (index-DsvxdoIr.js:2:21280)
r (index-DsvxdoIr.js:2:23571)

Environment

  • vinext: 0.0.30
  • vite: 8.0.0
  • @vitejs/plugin-rsc: 0.5.21
  • React: 19.2.4
  • Router: App Router
  • Deploy target: Cloudflare Workers

Steps to Reproduce

  1. Create a standard App Router project with vinext
  2. Run vinext dev or deploy and open the browser console
  3. Observe the error on every route

Expected Behavior

Preload hints should include a valid as attribute (e.g. as="script", as="style")
per the HTML spec. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload

Notes

Originates inside the minified framework bundle, not reproducible from application code.
Likely related to how RSC emits resource hints during streaming/hydration.

Originally created by @jodaks on GitHub (Mar 16, 2026). Original GitHub issue: https://github.com/cloudflare/vinext/issues/558 ## Description The framework bundle emits `<link rel=preload>` tags without a valid `as` attribute, causing a browser console error on every page load. ## Error [Error] <link rel=preload> must have a valid `as` value wf (framework-BsFTGslG.js:9:17874) he (index-DsvxdoIr.js:2:21280) r (index-DsvxdoIr.js:2:23571) ## Environment - vinext: 0.0.30 - vite: 8.0.0 - @vitejs/plugin-rsc: 0.5.21 - React: 19.2.4 - Router: App Router - Deploy target: Cloudflare Workers ## Steps to Reproduce 1. Create a standard App Router project with vinext 2. Run `vinext dev` or deploy and open the browser console 3. Observe the error on every route ## Expected Behavior Preload hints should include a valid `as` attribute (e.g. `as="script"`, `as="style"`) per the HTML spec. https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload ## Notes Originates inside the minified framework bundle, not reproducible from application code. Likely related to how RSC emits resource hints during streaming/hydration.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vinext#115
No description provided.