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
- Create a standard App Router project with vinext
- Run
vinext dev or deploy and open the browser console
- 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.
Description
The framework bundle emits
<link rel=preload>tags without a validasattribute,causing a browser console error on every page load.
Error
[Error] must have a valid
asvaluewf (framework-BsFTGslG.js:9:17874)
he (index-DsvxdoIr.js:2:21280)
r (index-DsvxdoIr.js:2:23571)
Environment
Steps to Reproduce
vinext devor deploy and open the browser consoleExpected Behavior
Preload hints should include a valid
asattribute (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.