新版开发工具1.01.1711150打开一片空白
发布于 6 年前 作者 ujin 9298 次浏览 来自 问答

如题

10 回复

“navigationBarBackgroundColor”: "white"改成#ffffff 就可以了

升级1.01.1711150打开凡是block标签都报错,这是要抛弃block标签的节奏????

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

是楼上提到的这个问题,我之前写的是"navigationBarBackgroundColor": "white"改成#ffffff 就可以了

这个不是报错,就是提示你需要注意,不过我也想知道这提示是啥意思

现在OK了,不白屏了

白鹭引擎发布微信小游戏也是这样白屏,可是没有app.son这个文件啊

[2017-11-16T8:58:4] INFO /Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/bc78839ccca8df9e5ceeb7fae11b7be2.js store.js rehydration finished

/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/b22d389f507598d040002f99ddfae35d.js:75 [2017-11-16T8:58:4] INFO /Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/f845f8c2f5db64684f8a3b26efa3609d.js setChromeProxy config: {“mode”:“pac_script”,“pacScript”:{“data”:“function FindProxyForURL(url, host) {\n              if (/^https?\\:\\/\\/.*?\\.debug.open.weixin.qq.com/.test(url)||/^https?\\:\\/\\/.*?\\.appservice.open.weixin.qq.com/.test(url)||/^https?\\:\\/\\/wxfile.open.weixin.qq.com\\//.test(url)||url.indexOf(‘http://aboutblank’) === 0||url.indexOf(‘https://clients1.google.com/tbproxy/af/’) === 0||/^https?\\:\\/\\/.*?\\.?editorservice.open.weixin.qq.com/.test(url)||/^https?\\:\\/\\/.*?\\.widget.open.weixin.qq.com/.test(url)||/^https?\\:\\/\\/.*?\\.widgetservice.open.weixin.qq.com/.test(url)||/^https?\\:\\/\\/trace.open.weixin.qq.com/.test(url)||/^http:\\/\\/usr\\//.test(url)||/^http:\\/\\/store\\//.test(url)||/^http:\\/\\/tmp\\//.test(url)) {\n    return ‘PROXY 127.0.0.1:9973’\n  }\n\n  if (/^(http|ws)s?\\:\\/\\/(localhost|127.0.0.1)/.test(url)){\n    return ‘DIRECT’\n  }\n              return ‘DIRECT’\n            }”}}

/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/efaddce19b790978e16990920754b000.js:1 editor container mount Thu Nov 16 2017 08:58:05 GMT+0800 (CST)

/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/b22d389f507598d040002f99ddfae35d.js:73 [2017-11-16T8:58:6] ERROR /Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/29cbb96f0d87ca0a3ee63c5dbbd8107c.js filename: /Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/components/connectAdvanced.js, msg: TypeError: Cannot read property ‘r’ of null

    at new h (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/5b7e808cbfe14a62c21959fb1771749d.js:1:523)

    at Proxy.fromHex (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/5b7e808cbfe14a62c21959fb1771749d.js:1:952)

    at Function.module.exports.c [as mapToProps] (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/d3fc1d4b6cfd440a6300e62456252a06.js:1:568)

    at mapToPropsProxy (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/wrapMapToProps.js:54:92)

    at handleNewState (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/selectorFactory.js:63:26)

    at handleSubsequentCalls (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/selectorFactory.js:80:30)

    at pureFinalPropsSelector (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/selectorFactory.js:85:32)

    at Object.runComponentSelector [as run] (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/components/connectAdvanced.js:43:25)

    at Connect.componentWillReceiveProps (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/components/connectAdvanced.js:167:23)

    at callComponentWillReceiveProps (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-dom/cjs/react-dom.development.js:6372:14)

Log.log @ /Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/b22d389f507598d040002f99ddfae35d.js:73

/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/components/connectAdvanced.js:258 Uncaught TypeError: Cannot read property ‘r’ of null

    at new h (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/5b7e808cbfe14a62c21959fb1771749d.js:1:523)

    at Proxy.fromHex (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/5b7e808cbfe14a62c21959fb1771749d.js:1:952)

    at Function.module.exports.c [as mapToProps] (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/d3fc1d4b6cfd440a6300e62456252a06.js:1:568)

    at mapToPropsProxy (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/wrapMapToProps.js:54:92)

    at handleNewState (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/selectorFactory.js:63:26)

    at handleSubsequentCalls (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/selectorFactory.js:80:30)

    at pureFinalPropsSelector (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/selectorFactory.js:85:32)

    at Object.runComponentSelector [as run] (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/components/connectAdvanced.js:43:25)

    at Connect.componentWillReceiveProps (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/components/connectAdvanced.js:167:23)

    at callComponentWillReceiveProps (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-dom/cjs/react-dom.development.js:6372:14)

/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/29cbb96f0d87ca0a3ee63c5dbbd8107c.js:1 TypeError: Cannot read property ‘r’ of null

    at new h (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/5b7e808cbfe14a62c21959fb1771749d.js:1:523)

    at Proxy.fromHex (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/5b7e808cbfe14a62c21959fb1771749d.js:1:952)

    at Function.module.exports.c [as mapToProps] (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/d3fc1d4b6cfd440a6300e62456252a06.js:1:568)

    at mapToPropsProxy (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/wrapMapToProps.js:54:92)

    at handleNewState (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/selectorFactory.js:63:26)

    at handleSubsequentCalls (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/selectorFactory.js:80:30)

    at pureFinalPropsSelector (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/selectorFactory.js:85:32)

    at Object.runComponentSelector [as run] (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/components/connectAdvanced.js:43:25)

    at Connect.componentWillReceiveProps (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/components/connectAdvanced.js:167:23)

    at callComponentWillReceiveProps (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-dom/cjs/react-dom.development.js:6372:14)

/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-dom/cjs/react-dom.development.js:9769 The above error occurred in the <Connect(e)> component:

    in Connect(e) (created by N)

    in div (created by N)

    in div (created by N)

    in div (created by c)

    in c (created by N)

    in N (created by Connect(N))

    in Connect(N) (created by U)

    in div (created by U)

    in div (created by U)

    in U (created by Connect(U))

    in Connect(U)

    in div (created by i)

    in i

    in Provider

Consider adding an error boundary to your tree to customize error handling behavior.

Visit https://fb.me/react-error-boundaries to learn more about error boundaries.

logCapturedError @ /Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-dom/cjs/react-dom.development.js:9769

/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/ba23d8b47b1f4ea08b9fd49939b9443f.js:1 Uncaught (in promise) TypeError: Cannot read property ‘r’ of null

    at new h (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/5b7e808cbfe14a62c21959fb1771749d.js:1:523)

    at Proxy.fromHex (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/5b7e808cbfe14a62c21959fb1771749d.js:1:952)

    at Function.module.exports.c [as mapToProps] (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/js/d3fc1d4b6cfd440a6300e62456252a06.js:1:568)

    at mapToPropsProxy (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/wrapMapToProps.js:54:92)

    at handleNewState (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/selectorFactory.js:63:26)

    at handleSubsequentCalls (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/selectorFactory.js:80:30)

    at pureFinalPropsSelector (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/connect/selectorFactory.js:85:32)

    at Object.runComponentSelector [as run] (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/components/connectAdvanced.js:43:25)

    at Connect.componentWillReceiveProps (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-redux/lib/components/connectAdvanced.js:167:23)

    at callComponentWillReceiveProps (/Applications/wechatwebdevtools.app/Contents/Resources/app.nw/node_modules/react-dom/cjs/react-dom.development.js:6372:14)

2_generated_background_page.html:1 Unchecked runtime.lastError while running debugger.sendCommand: No target with given id 59120bdb-e587-42a5-9393-e50c81a44c2b.

回到顶部