pb协议 Maximum call stack size exceeded

发布于 7 年前作者 yan0715052 次浏览最后编辑 7 年前来自 ask

只加了这一样代码: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

2 回复
ming40
ming401 楼6 年前

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

jingduan
jingduan2 楼5 年前

解决了吗