首页 > 解决方案 > 我总是收到无效的挂钩呼叫,我不知道为什么

问题描述

错误

我的 package.json:

{
  "scripts": {
    "start": "craco start",
    "build": "craco build",
    "test": "craco test",
    "eject": "react-scripts eject"
  },
  "dependencies": {
    "@apollo/client": "^3.3.21",
    "@craco/craco": "^6.2.0",
    "@widgetbot/react-embed": "^1.4.0",
    "@windmill/react-ui": "^0.6.0",
    "chart.js": "2.9.3",
    "fastest-levenshtein": "^1.0.12",
    "framer-motion": "^3.10.6",
    "moment": "^2.29.1",
    "react-chartjs-2": "^2.9.0",
    "react-dom": "^17.0.2",
    "react-focus-lock": "^2.4.0",
    "react-router-dom": "^5.2.0",
    "react-scripts": "^4.0.3",
    "react-transition-group": "^4.4.1",
    "socket.io-client": "^3.1.1"
  },
  "devDependencies": {
    "autoprefixer": "^9.8.6",
    "postcss": "^7.0.36",
    "tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.7"
  },
}

我认为这不是版本不匹配或不止一份 React。我尝试了 2 天左右,但我仍然没有解决方案。

标签: javascriptreactjsnpmjsx

解决方案


推荐阅读