Skip to content

<link rel=preload> missing as attribute in RSC framework bundle #558

@jodaks

Description

@jodaks

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions