pb协议 Maximum call stack size exceeded
发布于 6 年前 作者 yan07 14920 次浏览 来自 问答

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

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

回到顶部