未捕获(承诺)TypeError:无法读取null的属性“ trySubscribe”

时间:2020-05-24 05:59:47

标签: react-redux

在供应商内部使用redux connect。面对这个问题。

 s.componentDidMount (vendor.js:formatted:9589)
    at e.notifyAll (vendor.js:formatted:1841)
    at r.close (vendor.js:formatted:6002)
    at r.closeAll (vendor.js:formatted:7383)
    at r.perform (vendor.js:formatted:7356)
    at s (vendor.js:formatted:5558)
    at r.perform (vendor.js:formatted:7347)
    at Object.batchedUpdates (vendor.js:formatted:5111)
    at Object.a [as batchedUpdates] (vendor.js:formatted:6292)
    at Object._renderNewRootComponent (vendor.js:formatted:5640)
    at Object._renderSubtreeIntoContainer (vendor.js:formatted:5679)
    at render (vendor.js:formatted:5684)
    at eval (index.js?12d5:55)

当我在Modal(https://ant.design/components/modal/#API)中加载组件时,它可以正常工作。但是,当我尝试使用Modal(https://ant.design/components/modal/#API)的getContainer属性在某些元素中加载组件时。然后,它给出了这样的错误。

0 个答案:

没有答案