FortAwesome / Font-Awesome

The iconic SVG, font, and CSS toolkit
https://fontawesome.com
Other
74.18k stars 12.2k forks source link

Bug: Installing react-fontawesome in NextJs 15 raises React version dependency error #20399

Open chris-at-lemon opened 3 weeks ago

chris-at-lemon commented 3 weeks ago

Bug description

Trying to install latest version of @fortawesome/react-fontawesome In NextJs 15.0.2 it will try and istall:

"@fortawesome/react-fontawesome": "^0.2.2",

It fails because of "unable to resolve" dependency on the React version. I need to --force install.

npm ERR! While resolving: cvbresultsv2@0.1.0
npm ERR! Found: react@19.0.0-rc-02c0e824-20241028
npm ERR! node_modules/react
npm ERR!   react@"19.0.0-rc-02c0e824-20241028" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@">=16.3" from @fortawesome/react-fontawesome@0.2.2
npm ERR! node_modules/@fortawesome/react-fontawesome
npm ERR!   @fortawesome/react-fontawesome@"0.2.2" from the root project

Is there a version that's compatible. Should I patch it? Any other suggestions?

Thanks :)

Reproducible test case

No response

Screenshots

No response

Font Awesome version

v6.6.0

Serving

Other (as specified in the bug description)

Implementation

SVG+JS

Browser and Operating System

Windows 10 Pro

Web bug report checklist

tausiq2003 commented 1 week ago

Windows 10 Pro

in pop os too

robaetem commented 3 days ago

same here!