收藏
回答

pb协议 Maximum call stack size exceeded

问题模块
开发者工具

只加了这一样代码:import 'protobufjs'


使用protobufjs的时候,出现下面错误



WAService.js:15 Uncaught RangeError: Maximum call stack size exceeded

    at Array.join (native)

    at http://127.0.0.1:9973/appservice/__dev__/WAService.js:15:17943

    at http://127.0.0.1:9973/appservice/npm/protobufjs/src/util/minimal.js:5:18

    at require (http://127.0.0.1:9973/appservice/__dev__/WAService.js:15:18238)

    at http://127.0.0.1:9973/appservice/__dev__/WAService.js:15:17987

    at http://127.0.0.1:9973/appservice/npm/protobufjs/src/util/longbits.js:4:12

    at require (http://127.0.0.1:9973/appservice/__dev__/WAService.js:15:18238)

    at http://127.0.0.1:9973/appservice/__dev__/WAService.js:15:17987

    at http://127.0.0.1:9973/appservice/npm/protobufjs/src/util/minimal.js:26:17

    at require (http://127.0.0.1:9973/appservice/__dev__/WAService.js:15:18238)

(anonymous) @ WAService.js:15

(anonymous) @ index.js? [sm]:4

require @ WAService.js:15

(anonymous) @ appservice:1193


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

2 个回答

  • Jimmy L
    Jimmy L
    02-13

    楼主应该是循环引用js了,protobufjs里肯定也引用到了直接

    02-13
    赞同
    回复
  • 陈龙
    陈龙
    2018-07-04

    解决了吗

    2018-07-04
    赞同
    回复