美文网首页React知识摘要
TypeError: Cannot read property

TypeError: Cannot read property

作者: 青哥DevOps | 来源:发表于2020-04-06 17:39 被阅读0次

    https://github.com/reduxjs/redux/issues/2715

    两个办法
    1.https://zhuanlan.zhihu.com/p/86653939

    2.将redux降级到3.7.2 是可以配套react16使用的

    `
    {
    "name": "jianshu",
    "version": "0.1.0",
    "private": true,
    "dependencies": {
    "axios": "^0.18.0",
    "immutable": "^3.8.2",
    "react": "^16.4.0",
    "react-dom": "^16.4.0",
    "react-loadable": "^5.4.0",
    "react-redux": "^5.0.7",
    "react-router": "^4.3.1",
    "react-router-dom": "^4.3.1",
    "react-scripts": "1.1.4",
    "react-transition-group": "^2.3.1",
    "redux": "^3.7.2",
    "redux-immutable": "^4.0.0",
    "redux-thunk": "^2.3.0",
    "styled-components": "^3.3.2"
    },
    "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
    }
    }

    `

    相关文章

      网友评论

        本文标题:TypeError: Cannot read property

        本文链接:https://www.haomeiwen.com/subject/vewbphtx.html