twitter-react icon indicating copy to clipboard operation
twitter-react copied to clipboard

twitter-react doesn't work properly

Open mehdish9197 opened this issue 2 years ago • 0 comments

I am a django programmer and I am using your Twitter project using django and reactjs backend APIs works properly with Django When I send a request to the backend APIs with postman, it works correctly But the react project is not working properly I have no knowledge about react can someone help me to debug it? When I run the react project, it displays the login and register page, but the problem is that I can neither create a new user nor login, while doing the same in postman without any problem. When I try to login in react, it says that the User or password is wrong !!!! as i said i can login and register using postman without any problem...

And it shows this error in the log -->

Browserslist: caniuse-lite is outdated. Please run:
  npx browserslist@latest --update-db
  Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
Compiled with warnings.

src\App.js
  Line 58:6:  React Hook useEffect has a missing dependency: 'websocketCon'. Either include it or remove the dependency array  react-hooks/exhaustive-deps

src\components\CommentComponent\CommentCard.jsx
  Line 18:10:  'curIndex' is assigned a value but never used  no-unused-vars

src\components\CommentComponent\DropDownContent.jsx
  Line 3:3:  'BiUserPlus' is defined but never used  no-unused-vars

src\components\Sidebar.jsx
  Line 3:16:   'Redirect' is defined but never used          no-unused-vars
  Line 16:3:   'BiGlobeAlt' is defined but never used        no-unused-vars
  Line 18:3:   'BiAddToQueue' is defined but never used      no-unused-vars
  Line 20:10:  'CgMoreO' is defined but never used           no-unused-vars
  Line 28:10:  'getNotifications' is defined but never used  no-unused-vars

src\components\TweetComponents\DropDown.jsx
  Line 2:10:  'BiUserPlus' is defined but never used  no-unused-vars

src\components\TweetComponents\TweetPostCard.jsx
  Line 82:9:  'url' is assigned a value but never used  no-unused-vars

src\index.js
  Line 6:8:  'reportWebVitals' is defined but never used  no-unused-vars

src\pages\BookmarkList.jsx
  Line 21:7:  React Hook useEffect has a missing dependency: 'isAuthenticated'. Either include it or remove the dependency array  react-hooks/exhaustive-deps

src\pages\FollowUser.jsx
  Line 20:6:  React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array  react-hooks/exhaustive-deps

src\pages\Login.jsx
  Line 6:25:  'RiEye2Fill' is defined but never used  no-unused-vars

src\pages\Message.jsx
  Line 17:9:  'isAuthenticated' is assigned a value but never used  no-unused-vars
  Line 19:9:  'userprofile' is assigned a value but never used      no-unused-vars

src\pages\Notifications.jsx
  Line 36:6:  React Hook useEffect has a missing dependency: 'isAuthenticated'. Either include it or remove the dependency array  react-hooks/exhaustive-deps

src\pages\PrivateRoomChat.jsx
  Line 30:10:  'onlineStatus' is assigned a value but never used                                                                                                                                                                                                                                       no-unused-vars
  Line 30:24:  'setOnlineStatus' is assigned a value but never used                                                                                                                                                                                                                                    no-unused-vars
  Line 35:44:  Unexpected string concatenation of literals                                                                                                                                                                                                                                             no-useless-concat
  Line 60:19:  Assignments to the 'timer' variable from inside React Hook useEffect will be lost after each render. To preserve the value over time, store it in a useRef Hook and keep the mutable value in the '.current' property. Otherwise, you can move this variable directly inside useEffect  react-hooks/exhaustive-deps
  Line 75:6:   React Hook useEffect has a missing dependency: 'noScroll'. Either include it or remove the dependency array                                                                                                                                                                             react-hooks/exhaustive-deps

src\pages\TweetDetail.jsx
  Line 15:10:  'BiUserPlus' is defined but never used  no-unused-vars

Search for the keywords to learn more about each warning.

mehdish9197 avatar Nov 10 '22 14:11 mehdish9197