使用grabConnection(conn)时出现SailsJs错误

时间:2017-05-24 22:47:32

标签: sails.js

有人可以帮我解决这个SailsJs错误

Running "less:dev" (less) task
verbose: Lowering sails...
verbose: Sent kill signal to child process (26729)...
../staging.platform/node_modules/sails-disk/lib/adapter.js:80
      grabConnection(conn).dropCollection(coll, relations, cb);
                          ^

TypeError: Cannot read property 'dropCollection' of undefined
    at Object.drop (../staging.platform/node_modules/sails-disk/lib/adapter.js:80:27)
    at module.exports.drop (../staging.platform/node_modules/waterline/lib/waterline/adapter/ddl/index.js:110:13)
    at afterAsyncEach (../staging.platform/node_modules/waterline/lib/waterline/adapter/sync/strategies/alter.js:190:14)
    at ../staging.platform/node_modules/async/lib/async.js:52:16
    at Object.async.forEachOf.async.eachOf (../staging.platform/node_modules/async/lib/async.js:236:30)
    at Object.async.forEach.async.each (../staging.platform/node_modules/async/lib/async.js:209:22)
    at ../staging.platform/node_modules/waterline/lib/waterline/adapter/sync/strategies/alter.js:134:13
    at wrapper (../staging.platform/node_modules/waterline/node_modules/lodash/index.js:3592:19)
    at applyInOriginalCtx (../staging.platform/node_modules/waterline/lib/waterline/utils/normalize.js:421:80)
    at wrappedCallback (../staging.platform/node_modules/waterline/lib/waterline/utils/normalize.js:324:18)
    at success (../staging.platform/node_modules/waterline/node_modules/switchback/lib/normalize.js:33:31)
    at _switch (../staging.platform/node_modules/waterline/node_modules/switchback/lib/factory.js:58:28)
    at ../staging.platform/node_modules/sails-disk/lib/adapter.js:88:19
    at Timeout._onTimeout (../staging.platform/node_modules/sails-disk/lib/adapter.js:179:10)
    at ontimeout (timers.js:365:14)
    at tryOnTimeout (timers.js:237:5)
    at Timer.listOnTimeout (timers.js:207:5)

我遇到的问题是,这个错误在没有真正原因的情况下弹出。在我的本地计算机上,我的Sails应用程序正常工作 - 但是,在我的沙盒远程服务器上,我刚开始收到错误...

我完全失去了......

0 个答案:

没有答案