Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issues/warnings with React-native init (no-lockfile;connect2.x series is deprecated;react has unmet peer dependency)

Tags:

react-native

I am using react native init to initialize my project, and I'm getting some warnings, which I'm sure will come to bite me in the back later on If I don't deal with them now. In bold are the concerning messages. I'm not entirely sure what to do about them, can anyone inform me how to fix this/if I'm doing something wrong that I am receiving these messages/warnings? A beginner friendly/light on the terminology answer would be appreciated, as I'm new to react native

yarn add v0.27.5
info No lockfile found.
[1/4] Resolving packages...
warning react-native > [email protected]: connect 2.x series is deprecated
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "[email protected]" has unmet peer dependency "[email protected]".

This react-native init command is also taking very long (~ 5 minutes per use). Are the above warnings causing the long startup time, or something else?

like image 902
mdash1 Avatar asked Aug 22 '17 18:08

mdash1


1 Answers

info is just some infomation, not a problem

and for the two warning:

  • deprecated connect

    about the deprecated connect version,I came up with too, it's because react-native depends on connect, and react-native's latest version is 0.49.3, it use [email protected],a little bit deprecated, and there's someone made a pr about this problem, Github:pr ,but has not been merged because of some test coverage, so now just ignore this warning;
  • unmet peer dependency

    it's related to some deprecated package.
like image 114
jialin wang Avatar answered Nov 18 '22 20:11

jialin wang