LucasBassetti / react-simple-chatbot

:speech_balloon: Easy way to create conversation chats
https://lucasbassetti.com.br/react-simple-chatbot/
MIT License
1.74k stars 602 forks source link

react-simple-chatbot is not installed on React v17.2.0 #305

Open didoshakra opened 3 years ago

didoshakra commented 3 years ago

We create a new project: npx create-react-app react-simple-chatbot-reactv17

package.json ... "dependencies": { "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", "react": "^17.0.2", "react-dom": "^17.0.2", "react-scripts": "4.0.3", "web-vitals": "^1.0.1" }, ... Gives an error during installation react-simple-chatbot

PS D:__react__next__r-chat-bot\react-simple-chatbot-rv17> npm install react-simple-chatbot npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: react-simple-chatbot-rv17@0.1.0 npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@"^17.0.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.3.0" from react-simple-chatbot@0.6.1 npm ERR! node_modules/react-simple-chatbot npm ERR! react-simple-chatbot@"*" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! npm ERR! See C:\Users\RA\AppData\Local\npm-cache\eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\RA\AppData\Local\npm-cache_logs\2021-04-25T09_28_41_311Z-debug.log PS D:__react__next__r-chat-bot\react-simple-chatbot-rv17>Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

hadisd5 commented 3 years ago

i have the same Problem

AjayKumarMP commented 3 years ago

Please resolve this. in React v17.0.2 i am getting error like Invalid Hook when I run the project.