感谢楼主。慒了一晚上,直到看了你的这个帖子!
编译报错?Cannot read property 'addListener' of undefVersion: RC.1.03.2012121 Console: [Render layer error] TypeError: Cannot read property 'replace' of undefined at rewritor (http://127.0.0.1:60230/__pageframe__/__extendedlib__/weui/latest/pageframe.js:176:44) at http://127.0.0.1:60230/__pageframe__/__extendedlib__/weui/latest/pageframe.js:194:127 [Render layer error] webviewScriptError Framework inner error (expect FLOW_CREATE_NODE but get another) Error: Framework inner error (expect FLOW_CREATE_NODE but get another) at e (WAWebview.js:1:1219364) at e (WAWebview.js:1:1219790) at e (WAWebview.js:1:1219790) at e (WAWebview.js:1:1219790) at e (WAWebview.js:1:1219790) at e.value (WAWebview.js:1:1245360) at P._advancedCreate (WAWebview.js:1:233738) at Object.P.create [as createElement] (WAWebview.js:1:235408) at le (WAWebview.js:1:1261165) at Function.oe [as _startCb] (WAWebview.js:1:1254377) [Render layer error] TypeError: Cannot read property 'addListener' of undefined at WAWebview.js:1:1269572 at n (WAWebview.js:1:1269721) at WAWebview.js:1:127488 是什么问题呢? 一直好好的,就最后一次编译,就这样了,很懵。 [图片] 但点击 自动同步到 手机是 好的: [图片] 为了找出原因(项目比较紧急),我打开一个之前练手的 demo(这个项目是OK的), 也出现了这个问题: [图片], 怀疑判断是 weui 的问题...这个时候已经是19点了,从17到19,肚子叫了好多次...但等了这么久,社区一个知道的人都没有, 冷静下来,仔细分析错误提示:.../weui/_latest/... 难道是本地的 weui 包不对? 然后我把基础包替换成 最新的:2.14.1,然后push: [图片] 最后还是自己解决的。好,去吃饭。Date:19:21
2020-12-24搞定了。唉 [图片]
新手求助!昨晚还正常运行正常的代码,为何今天运行就出错了呢?昨晚在开发工具中还运行正常,今晚打开后就变成这样了。求助:这是怎么回事呢? [图片] <view class="page__bd"> <view class="weui-cells"> <navigator url="../userInfo/userInfo" class="weui-cell weui-cell_access" hover-class="weui-cell_active"> <view class="weui-cell__bd"> <h4 class="weui-media-box__title">我的信息</h4> </view> <view class="weui-cell__ft"></view> </navigator> <navigator url="../lists/lists" class="weui-cell weui-cell_access" hover-class="weui-cell_active"> <view class="weui-cell__bd"> <h4 class="weui-media-box__title">我的列表</h4> </view> <view class="weui-cell__ft"></view> </navigator> <navigator url="../myBaseData/myBaseData" class="weui-cell weui-cell_access" hover-class="weui-cell_active"> <view class="weui-cell__bd"> <h4 class="weui-media-box__title">我的基础数据</h4> </view> <view class="weui-cell__ft"></view> </navigator> </view> </view> 样式也没有了,如下: [图片] 正常的页面应该是下面这样的: [图片] 系统是win10 64bit 开发工具目前的版本为:1.03.2011120
2020-12-24搞定了。看这个: https://developers.weixin.qq.com/community/minihome/doc/000e8e585500f8c32a7b7df605b800
开发者工具出现渲染层错误,昨天都还好好的,今天一打开项目就报错,但是在真机上调试就没这个问题?[渲染层错误] TypeError: Cannot read property 'replace' of undefined at rewritor (http://127.0.0.1:63695/__pageframe__/__extendedlib__/weui/latest/pageframe.js:176:44) at http://127.0.0.1:63695/__pageframe__/__extendedlib__/weui/latest/pageframe.js:194:127 [渲染层错误] webviewScriptError Cannot read property 'replace' of undefined TypeError: Cannot read property 'replace' of undefined at rewritor (http://127.0.0.1:63695/__pageframe__/__extendedlib__/weui/latest/pageframe.js:176:44) at http://127.0.0.1:63695/__pageframe__/__extendedlib__/weui/latest/pageframe.js:194:127 [渲染层错误] Uncaught
2020-12-24