0

Hi I am trying to create a chatbot using Neo4j as a backend and GPT-3 as a translation tool for NL and CYPHER. I am following the tutorial in this webpage: https://medium.com/@yu-joshua/adding-q-a-features-to-your-knowledge-graph-in-3-simple-steps-3ffe6f5caef4 by Fanghua YU and he provides the frontend in Node.js. He uses react-simple-bot but the problem is that the latest version of this library is not compatible with the library styled-components@5.3.3

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: react-simple-chatbot@0.6.1 npm ERR! Found: styled-components@5.3.8 npm ERR! node_modules/styled-components npm ERR! peer styled-components@">= 2" from babel-plugin-styled-components@2.0.7 npm ERR! node_modules/babel-plugin-styled-components npm ERR! babel-plugin-styled-components@">= 1.12.0" from styled-components@5.3.8 npm ERR! styled-components@"^5.3.8" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer styled-components@"^4.0.0" from react-simple-chatbot@0.6.1
npm ERR! node_modules/react-simple-chatbot npm ERR! react-simple-chatbot@"^0.6.1" from the root project npm ERR! npm ERR! Conflicting peer dependency: styled-components@4.4.1 npm ERR! node_modules/styled-components npm ERR! peer styled-components@"^4.0.0" from react-simple-chatbot@0.6.1 npm ERR! node_modules/react-simple-chatbot npm ERR! react-simple-chatbot@"^0.6.1" from the root project

I tried a lot of things. The most obvious one might be to downgrade the version of styled-components library to 4.0.0 which is compatible with react-simple-bot. But when I do that, a lot of the libraries are left deprecated and there is a lot of vulnerabilities in the App:

added 1919 packages, and audited 1920 packages in 30s

191 packages are looking for fundingrun npm fund for details

33 vulnerabilities (1 low, 1 moderate, 22 high, 9 critical)

So then I tried to run the app in my web browser but doesn't display anything.

So then I tried to run 'npm audit fix' to solve this problem but most of them require 'npm audit fix --force' which ends up breaking the application and still when I run it doesn't display anything...

I also tried to fix libraries one by one with a lot of patience and still nothing.

Please I really need help with this I can provide code if needed but I didn't feel it was necessary.

{
  "name": "datathon-ui",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@testing-library/jest-dom": "^5.16.0",
    "@testing-library/react": "^11.2.7",
    "@testing-library/user-event": "^12.8.3",
    "core-js": "^3.29.0",
    "dotenv": "^10.0.0",
    "immer": "^9.0.19",
    "neo4j-driver": "^4.4.2",
    "nth-check": "^2.1.1",
    "openai": "^2.0.4",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-scripts": "4.0.3",
    "react-simple-chatbot": "^0.6.1",
    "speak-tts": "^2.0.8",
    "styled-components": "^4.0.0",
    "svgo": "^3.0.2",
    "web-vitals": "^1.1.2"
  },

0 Answers0