升级基础版到1.6.4后报jsEnginScriptError错误
发布于 6 年前 作者 taoyong 12368 次浏览 来自 问答

WAService.js:3 jsEnginScriptError

n is not a function

TypeError: n is not a function

   at _ (http://127.0.0.1:9973/appservice/__dev__/WAService.js:12:14247)

   at Function.y [as create] (http://127.0.0.1:9973/appservice/__dev__/WAService.js:12:14400)

   at Function.p.prepare (http://127.0.0.1:9973/appservice/__dev__/WAService.js:11:12109)

   at F (http://127.0.0.1:9973/appservice/__dev__/WAService.js:13:14230)

   at W (http://127.0.0.1:9973/appservice/__dev__/WAService.js:13:14261)

   at U (http://127.0.0.1:9973/appservice/__dev__/WAService.js:13:14641)

   at Function.

(http://127.0.0.1:9973/appservice/dev/WAService.js:13:17012)

   at http://127.0.0.1:9973/appservice/__dev__/WAService.js:13:22046

   at http://127.0.0.1:9973/appservice/__dev__/WAService.js:5:22487

   at Array.forEach (

)

errorReport @ WAService.js:3

(anonymous) @ WAService.js:3

t.errorReport @ WAService.js:13

(anonymous) @ WAService.js:13

(anonymous) @ WAService.js:5

(anonymous) @ WAService.js:5

(anonymous) @ WAService.js:4

d @ appservice:1711

f.registerCallback @ appservice:1711

k.forEach @ appservice:1711

d @ appservice:1711

h.onmessage @ appservice:1711

3 回复

jsEnginScriptError

n is not a function

TypeError: n is not a function

    at _ (http://127.0.0.1:59196/appservice/__dev__/WAService.js:12:18934)

    at Function.y [as create] (http://127.0.0.1:59196/appservice/__dev__/WAService.js:12:19087)

    at Function.p.prepare (http://127.0.0.1:59196/appservice/__dev__/WAService.js:11:16224)

    at Object.p.create [as createElement] (http://127.0.0.1:59196/appservice/__dev__/WAService.js:11:16846)

    at e.value (http://127.0.0.1:59196/appservice/__dev__/WAService.js:12:21986)

    at http://127.0.0.1:59196/appservice/__dev__/WAService.js:12:22726

    at Array.forEach (<anonymous>)

    at e.value (http://127.0.0.1:59196/appservice/__dev__/WAService.js:12:22698)

    at http://127.0.0.1:59196/appservice/__dev__/WAService.js:12:22726

    at Array.forEach (<anonymous>)

console.error @ VM1328:1

errorReport @ WAService.js:3

(anonymous) @ WAService.js:3

t.errorReport @ WAService.js:13

(anonymous) @ WAService.js:13

(anonymous) @ WAService.js:5

(anonymous) @ WAService.js:5

(anonymous) @ WAService.js:4

a @ VM1343 appservice:1487

d.registerCallback @ VM1343 appservice:1487

m.forEach @ VM1343 appservice:1487

d @ VM1343 appservice:1487

j.onmessage @ VM1343 appservice:1487

VM1328:1 jsEnginScriptError

Cannot read property ‘createInstance’ of null

TypeError: Cannot read property ‘createInstance’ of null

    at Object.p.create [as createElement] (http://127.0.0.1:59196/appservice/__dev__/WAService.js:11:17337)

    at e.value (http://127.0.0.1:59196/appservice/__dev__/WAService.js:12:21986)

    at http://127.0.0.1:59196/appservice/__dev__/WAService.js:12:22726

    at Array.forEach (<anonymous>)

    at e.value (http://127.0.0.1:59196/appservice/__dev__/WAService.js:12:22698)

    at http://127.0.0.1:59196/appservice/__dev__/WAService.js:12:22726

    at Array.forEach (<anonymous>)

    at e.value (http://127.0.0.1:59196/appservice/__dev__/WAService.js:12:22698)

    at http://127.0.0.1:59196/appservice/__dev__/WAService.js:12:22726

    at Array.forEach (<anonymous>)

console.error @ VM1328:1

errorReport @ WAService.js:3

(anonymous) @ WAService.js:3

t.errorReport @ WAService.js:13

(anonymous) @ WAService.js:13

(anonymous) @ WAService.js:5

(anonymous) @ WAService.js:5

(anonymous) @ WAService.js:4

a @ VM1343 appservice:1487

d.registerCallback @ VM1343 appservice:1487

m.forEach @ VM1343 appservice:1487

d @ VM1343 appservice:1487

j.onmessage @ VM1343 appservice:1487

我这里也遇到了, 期待腾讯早日fix

感谢反馈,我们优化下这里的错误提示。

问题解决了:原因是我在Page页面中无意间加了下面这句话,测试组件用的,但是编辑器给出的提示,真的没有办法找到错误的原因

Component({

    properties: {

    myProperty2: Array // 简化的定义方式

}

});

回复

回到顶部