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

React fails to recognize the prop named fetchPriority #2869

Open
Fun117 opened this issue May 6, 2024 · 0 comments
Open

React fails to recognize the prop named fetchPriority #2869

Fun117 opened this issue May 6, 2024 · 0 comments

Comments

@Fun117
Copy link

Fun117 commented May 6, 2024

By changing fetchPriority to fetchpriority in the getDynamicProps function located in node_modules/next/dist/client/image-component.js, the error was resolved. Is this issue on the Next.js side?

Error Code

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 img
    at eval (webpack-internal:///./node_modules/next/dist/client/image-component.js:136:11)
    at eval (webpack-internal:///./node_modules/next/dist/client/image-component.js:245:47)
    at div
    at div
    at div
    at div
    at MDXContent (webpack-internal:///./pages/index.mdx:1288:114)
    at MDXProvider (file:///Users/fun117/_dev/github/selcold/sglid/website/node_modules/@mdx-js/react/lib/index.js:90:30)
    at div
    at Body (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:2918:3)
    at ActiveAnchorProvider (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:156:3)
    at div
    at div
    at InnerLayout (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:2969:3)
    at m (/Users/fun117/_dev/github/selcold/sglid/website/node_modules/next-themes/dist/index.js:1:310)
    at exports.ThemeProvider (/Users/fun117/_dev/github/selcold/sglid/website/node_modules/next-themes/dist/index.js:1:3611)
    at ConfigProvider (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:262:3)
    at Layout (webpack-internal:///./node_modules/nextra-theme-docs/dist/index.js:3088:5)
    at Nextra (webpack-internal:///./node_modules/nextra/dist/layout.js:17:3)
    at App (webpack-internal:///./pages/_app.mdx:25:34)
    at MDXContent
    at StyleRegistry (/Users/fun117/_dev/github/selcold/sglid/website/node_modules/styled-jsx/dist/index/index.js:449:36)
    at eU (/Users/fun117/_dev/github/selcold/sglid/website/node_modules/next/dist/compiled/next-server/pages.runtime.dev.js:8:20468)
    at eH (/Users/fun117/_dev/github/selcold/sglid/website/node_modules/next/dist/compiled/next-server/pages.runtime.dev.js:17:1765)
    at eJ (/Users/fun117/_dev/github/selcold/sglid/website/node_modules/next/dist/compiled/next-server/pages.runtime.dev.js:17:3068)
    at div
    at e9 (/Users/fun117/_dev/github/selcold/sglid/website/node_modules/next/dist/compiled/next-server/pages.runtime.dev.js:26:761)   
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