开发工具报错Please do not register multiple Pa
发布于 6 年前 作者 napan 17491 次浏览 来自 问答
  • 当前 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
3 回复

请问解决了问题吗?到底是怎么回事?我也是,顺手更新了工具就报错,很头疼

我也是更新了开发者工具1.02.1812180 本后 莫名出现的bug,代码是 真机模拟 上运行没有问题,就是点击预览在手机上看就会出现这样的问题 ,我把在线上运行没问题的代码拉下预览一遍   还是会有这样的问题

删除pages/jxtz/jxtz.js的文件下的Page({})或Component({})试一下

回到顶部