我也报这样的错误了,后来发现是引入了另一个Page的js,所以导致有两个Page,当时不知道,所以一直没找到错误。
开发工具报错Please do not register multiple Pa- 当前 Bug 的表现(可附上截图) Please do not register multiple Pages in pages/jxtz/jxtz.js console.error @ VM401:1 t.error @ WAService.js:18 t.pageHolder @ WAService.js:17 (anonymous) @ jxtz.js? [sm]:21 require @ WAService.js:18 (anonymous) @ VM485:43 scriptLoaded @ appservice?t=1535783084650:3908 VM401:1 thirdScriptError sdk uncaught third Error APP-SERVICE-Engine:Please do not register multiple Pages in pages/jxtz/jxtz.js Error: APP-SERVICE-Engine:Please do not register multiple Pages in pages/jxtz/jxtz.js at new t (http://127.0.0.1:16149/appservice/__dev__/WAService.js:18:889) at t.pageHolder (http://127.0.0.1:16149/appservice/__dev__/WAService.js:17:18737) at http://127.0.0.1:16149/appservice/pages/jxtz/jxtz.js:23:1 at require (http://127.0.0.1:16149/appservice/__dev__/WAService.js:18:27248) at <anonymous>:43:7 at HTMLScriptElement.scriptLoaded (http://127.0.0.1:16149/appservice/appservice?t=1535783084650:3908:23) 页面不可操作:报错如下 VM401:1 Page[pages/wellcome/wellcome] not found. May be caused by: 1. Forgot to add page route in app.json. 2. Invoking Page() in async task. console.warn @ VM401:1 t.warn @ WAService.js:18 D @ WAService.js:17 q @ WAService.js:17 K @ WAService.js:17 (anonymous) @ WAService.js:17 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:5 (anonymous) @ WAService.js:4 a @ appservice?t=1535783084650:3396 d.registerCallback @ appservice?t=1535783084650:3396 n.forEach @ appservice?t=1535783084650:3396 d @ appservice?t=1535783084650:3396 k.onmessage @ appservice?t=1535783084650:3396 WAService.js:18 Sat Sep 01 2018 14:24:47 GMT+0800 (中国标准时间) 事件警告 VM401:1 Do not have login handler in current page: pages/wellcome/wellcome. Please make sure that login handler has been defined in pages/wellcome/wellcome, or pages/wellcome/wellcome has been added into app.json console.warn @ VM401:1 t.warn @ WAService.js:18 z @ WAService.js:17 (anonymous) @ WAService.js:17 (anonymous) @ WAService.js:18 (anonymous) @ WAService.js:6 e.(anonymous function) @ WAService.js:4 a @ appservice?t=1535783084650:3396 e.registerCallback @ appservice?t=1535783084650:3396 n.forEach @ appservice?t=1535783084650:3396 d @ appservice?t=1535783084650:3396 k.onmessage @ appservice?t=1535783084650:3396 [图片] 开发工具调试 [图片] - 预期表现 - 复现路径 - 提供一个最简复现 Demo
2021-04-13