11150版本bug如下,null指针
发布于 6 年前 作者 xia19 2409 次浏览 来自 问答

\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\components\connectAdvanced.js, msg: TypeError: Cannot read property ‘r’ of null

    at new h (D:\tools\Tencent\微信web开发者工具minapp\package.nw\js\5b7e808cbfe14a62c21959fb1771749d.js:1:523)

    at Proxy.fromHex (D:\tools\Tencent\微信web开发者工具minapp\package.nw\js\5b7e808cbfe14a62c21959fb1771749d.js:1:952)

    at Function.module.exports.c [as mapToProps] (D:\tools\Tencent\微信web开发者工具minapp\package.nw\js\d3fc1d4b6cfd440a6300e62456252a06.js:1:568)

    at mapToPropsProxy (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\connect\wrapMapToProps.js:54:92)

    at handleNewState (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\connect\selectorFactory.js:63:26)

    at handleSubsequentCalls (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\connect\selectorFactory.js:80:30)

    at pureFinalPropsSelector (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\connect\selectorFactory.js:85:32)

    at Object.runComponentSelector [as run] (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\components\connectAdvanced.js:43:25)

    at Connect.componentWillReceiveProps (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\components\connectAdvanced.js:167:23)

    at callComponentWillReceiveProps (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-dom\cjs\react-dom.development.js:6372:14)

2 回复

抱歉这是我们的 bug,请检查 app.json 中的 navigationBarBackgroundColor 是否是合法颜色值,以及是否有调用 setNavigationBarColor 并传入了非法的 backgroundColor  值

Uncaught TypeError: Cannot read property ‘r’ of null

    at new h (D:\tools\Tencent\微信web开发者工具minapp\package.nw\js\5b7e808cbfe14a62c21959fb1771749d.js:1)

    at Proxy.fromHex (D:\tools\Tencent\微信web开发者工具minapp\package.nw\js\5b7e808cbfe14a62c21959fb1771749d.js:1)

    at Function.module.exports.c [as mapToProps] (D:\tools\Tencent\微信web开发者工具minapp\package.nw\js\d3fc1d4b6cfd440a6300e62456252a06.js:1)

    at mapToPropsProxy (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\connect\wrapMapToProps.js:54)

    at handleNewState (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\connect\selectorFactory.js:63)

    at handleSubsequentCalls (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\connect\selectorFactory.js:80)

    at pureFinalPropsSelector (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\connect\selectorFactory.js:85)

    at Object.runComponentSelector [as run] (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\components\connectAdvanced.js:43)

    at Connect.componentWillReceiveProps (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-redux\lib\components\connectAdvanced.js:167)

    at callComponentWillReceiveProps (D:\tools\Tencent\微信web开发者工具minapp\package.nw\node_modules\react-dom\cjs\react-dom.development.js:6372)

D:\tools\Tencent\微信web开发者工具minapp\package.nw\js\29cbb96f0d87ca0a3ee63c5dbbd8107c.js:1 TypeError: Cannot read property ‘r’ of null

回到顶部