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

Can't install with react@^18.0.0 #210

Open
diragb opened this issue Aug 20, 2022 · 4 comments
Open

Can't install with react@^18.0.0 #210

diragb opened this issue Aug 20, 2022 · 4 comments

Comments

@diragb
Copy link

diragb commented Aug 20, 2022

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"18.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.13.1" from [email protected]
npm ERR! node_modules/rn-placeholder
npm ERR!   rn-placeholder@"*" from the root project
@mfrachet
Copy link
Owner

#179

@triplumix
Copy link

You can add these to package.json:
image

It works for me!

@technical-shoubhik
Copy link

I'm getting this error on making those changes :(

Error: Unable to resolve module rn-placeholder from /home/expo/workingdir/build/screens/postDetail.js: rn-placeholder could not be found within the project or in these directories:
node_modules
If you are sure the module exists, try these steps:

  1. Clear watchman watches: watchman watch-del-all
  2. Delete node_modules and run yarn install
  3. Reset Metro's cache: yarn start --reset-cache
  4. Remove the cache: rm -rf /tmp/metro-*
    26 | Progressive,
    27 | Fade,

28 | } from "rn-placeholder";
| ^
29 |
30 | const PostDetail = (props) => {
31 | const tw = useTailwind();

@seriouscoderone
Copy link

WORKAROUND:

Add this to your dependencies

"rn-placeholder": "https://github.com/mfrachet/rn-placeholder.git#d3d413a9303bc0f131b4dc30b7a3647aaedbe973"

that hash fixed the problem, but it looks like it was never published to npm

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

5 participants