Knex客户端未定义

时间:2019-01-19 20:27:53

标签: node.js postgresql knex.js

希望看看是否有人知道为什么发生此错误吗?我正在尝试将应用程序部署到数字海洋,并且一切都进展顺利。

emphasized text/home/user/koala/server/node_modules/knex/lib/knex.js:33
  if (arguments.length === 0 || !config.client && !config.dialect) {
                                        ^

TypeError: Cannot read property 'client' of undefined
    at Knex (/home/user/koala/server/node_modules/knex/lib/knex.js:33:41)
    at Object.<anonymous> (/home/user/koala/server/db/connection.js:5:20)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/user/koala/server/components/account/accountController.js:1:82)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
[nodemon] app crashed - waiting for file changes before starting...

0 个答案:

没有答案