使用 combineReducers 遇到已知错误,无法解决包依赖关系

时间:2021-03-06 23:56:58

标签: typescript react-redux

我在我的项目中遇到 https://github.com/reduxjs/redux/issues/2709,但不知道如何安装正确的版本 - 我可能做错了什么,只要我运行 npm install 尝试的 redux 版本专门安装被替换为更新的。

甚至不确定这是否是要共享的正确文件,但是 package-lock.json 有 10 多行数千行,所以希望这足够了:

package.json:

  "name": "some-app",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@babel/plugin-syntax-typescript": "^7.2.0",
    "@babel/plugin-transform-typescript": "^7.2.0",
    "@babel/preset-env": "^7.2.3",
    "@babel/preset-typescript": "^7.1.0",
    "@babel/runtime": "^7.1.5",
    "@testing-library/jest-dom": "^5.11.9",
    "@testing-library/react": "^11.2.5",
    "@testing-library/user-event": "^12.8.1",
    "@types/jest": "^26.0.20",
    "@types/node": "^12.20.4",
    "@types/react": "^17.0.2",
    "@types/react-dom": "^17.0.1",
    "axios": "^0.21.1",
    "react": "^17.0.1",
    "react-dom": "^17.0.1",
    "react-redux": "^6.0.1",
    "react-scripts": "4.0.3",
    "redux": "^4.0.1",
    "redux-observable": "^1.2.0",
    "rxjs": "^6.6.6",
    "typescript": "^2.3.4",
    "web-vitals": "^1.1.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "devDependencies": {
    "@types/react-redux": "^7.0.3"
  }
}

`

0 个答案:

没有答案