Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usingprod build causes the "React does not recognize the fetchPriority prop on a DOM element" error #445

Open
thedocbwarren opened this issue Dec 28, 2024 · 0 comments

Comments

@thedocbwarren
Copy link

If you use SSR with vinxi 0.5.1 and build for prod, you get the infamous:
"React does not recognize the fetchPriority prop on a DOM element"

It appears to be added to assets passed for hydration. Other frameworks (Next.js) have fixed this with React 18.2 but this must need a fix here. Or it could be Nitro.

error in console with prod server:

Warning: React does not recognize the `fetchPriority` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `fetchpriority` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
    at link
    at Suspense
    at j (file://~/workspace/react/react-socket-prototype/.output/server/chunks/nitro/nitro.mjs:4465:778)
    at Router (file://~/workspace/react/react-socket-prototype/.output/server/node_modules/react-router/dist/umd/react-router.development.js:1207:17)
    at StaticRouter (file://~/workspace/react/react-socket-prototype/.output/server/node_modules/react-router-dom/server.mjs:11:3)
    at div
    at body
    at html

see vercel/next.js#65161

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant