Closed vemulanishanth closed 2 years ago
Hi, I'm facing the same issue. Any solutions yet? Thanks a lot
@anhquan291 As temporary solution go for npm install --legacy-peer-deps of you are using npm v7+ it will install npm packages as though like it is npm v4.x and v6.x But this is not a permanent solution.
@anhquan291 As temporary solution go for npm install --legacy-peer-deps of you are using npm v7+ it will install npm packages as though like it is npm v4.x and v6.x But this is not a permanent solution.
thank you so much
FYI npm7 will break a shit ton of library installs, do not use npm7.
FYI npm7 will break a shit ton of library installs, do not use npm7.
But, what can we do?! A new React-Native Application with npx react-native init ....
, comes with react 17.
The issues caused by npm7 can be overcome with legacy peer deps
but the dependency on third-party packages that have configured their package dependencies without future-proofing is the main issue.
The only ways are,
Both a Major Pro and Major con of React-Native is this dependency on third party packages.
I've removed the peer dependencies in v1.5.0. closing this as of now.
Work flow:
Create a new react-native application and try installing this package
Error Log:
Proposed Solution:
This is because the package.json looks for explicit dependency on react and react-native. Since they are peer dependencies and does not affect actual functionality
Replace
with
and publish a new version of the package.
Note:
Though this is the solution I propose with great confidence, I'd advise and request the maintainer to check if this is the only change required for solving the issue.