收藏
回答

升级基础版到1.6.4后报jsEnginScriptError错误

问题模块
API和组件


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



最后一次编辑于  2017-11-03  (未经腾讯允许,不得转载)
回答关注问题邀请回答
收藏

3 个回答

  • LastLeaf
    LastLeaf
    2017-11-03

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

    2017-11-03
    赞同
    回复
  • Elliot
    Elliot
    2018-04-26

    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

    2018-04-26
    赞同
    回复
  • Six006
    Six006
    2017-11-03

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


    Component({

        properties: {

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

    }

    });

    回复


    2017-11-03
    赞同
    回复