sailsJS中超出了最大调用堆栈大小

时间:2017-01-27 10:56:45

标签: node.js sails.js

当我运行我的风帆应用程序时出现以下错误,我正在使用sails 0.12.11 node v.5.6.0,我们确实有分支调用next,在应用程序中我们将初始数据填充到数据库,我不能弄清楚导致这个错误的原因,有人可以帮助我做出这个错误。

events.js:110
    handler.call(self, arg1, arg2, arg3);
            ^

RangeError: Maximum call stack size exceeded
    at emitThree (events.js:110:13)
    at Walker.emit (events.js:188:7)
    at Walker._wPostFilesHandler (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:133:10)
    at Walker._wReadFiles (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:152:10)
    at Walker._wReaddirHandler (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:169:10)
    at Walker._wWalkSync (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:238:8)
    at Walker._wNext (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:263:12)
    at Walker._wNext (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:272:17)
    at Walker._wNext (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:272:17)
    at Walker._wNext (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:272:17)
    at Walker._wNext (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:272:17)
    at Walker._wOnEmitDone (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:124:8)
    at nextWhenReady (/usr/local/lib/node_modules/sails/node_modules/walk/lib/node-type-emitter.js:69:29)
    at Object.emitPluralEvents [as emitNodeTypeGroups] (/usr/local/lib/node_modules/sails/node_modules/walk/lib/node-type-emitter.js:77:5)
    at Walker._wPostFilesHandler (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:136:17)
    at Walker._wReadFiles (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:152:10)
    at Walker._wReaddirHandler (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:169:10)
    at Walker._wWalkSync (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:238:8)
    at Walker._wNext (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:263:12)
    at Walker._wNext (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:272:17)
    at Walker._wOnEmitDone (/usr/local/lib/node_modules/sails/node_modules/walk/lib/walk.js:124:8)
    at nextWhenReady (/usr/local/lib/node_modules/sails/node_modules/walk/lib/node-type-emitter.js:69:29)

0 个答案:

没有答案