问答详情
源自:3-3 新增期刊内容02-模型操作

这个No Sequelize instance passed 是哪里的错误啊

Error: No Sequelize instance passed

    at Function.init (/Users/Cholin/Desktop/project/starter/node_modules/sequelize/src/model.js:960:13)

    at Object.<anonymous> (/Users/Cholin/Desktop/project/starter/app/model/movie.js:9:7)

    at Module._compile (node:internal/modules/cjs/loader:1275:14)

    at Module._compile (/Users/Cholin/Desktop/project/starter/node_modules/pirates/lib/index.js:136:24)

    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)

    at Object.newLoader [as .js] (/Users/Cholin/Desktop/project/starter/node_modules/pirates/lib/index.js:141:7)

    at Module.load (node:internal/modules/cjs/loader:1133:32)

    at Function.Module._load (node:internal/modules/cjs/loader:972:12)

    at Module.require (node:internal/modules/cjs/loader:1157:19)

    at require (node:internal/modules/helpers:119:18)

    at Object.<anonymous> (/Users/Cholin/Desktop/project/starter/app/dao/movie.js:1:1)

    at Module._compile (node:internal/modules/cjs/loader:1275:14)

    at Module._compile (/Users/Cholin/Desktop/project/starter/node_modules/pirates/lib/index.js:136:24)

    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)

    at Object.newLoader [as .js] (/Users/Cholin/Desktop/project/starter/node_modules/pirates/lib/index.js:141:7)

    at Module.load (node:internal/modules/cjs/loader:1133:32)

    at Function.Module._load (node:internal/modules/cjs/loader:972:12)

    at Module.require (node:internal/modules/cjs/loader:1157:19)

    at require (node:internal/modules/helpers:119:18)

    at Object.<anonymous> (/Users/Cholin/Desktop/project/starter/app/service/content.js:2:1)

    at Module._compile (node:internal/modules/cjs/loader:1275:14)

    at Module._compile (/Users/Cholin/Desktop/project/starter/node_modules/pirates/lib/index.js:136:24)

    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)

    at Object.newLoader [as .js] (/Users/Cholin/Desktop/project/starter/node_modules/pirates/lib/index.js:141:7)

    at Module.load (node:internal/modules/cjs/loader:1133:32)

    at Function.Module._load (node:internal/modules/cjs/loader:972:12)

    at Module.require (node:internal/modules/cjs/loader:1157:19)

    at require (node:internal/modules/helpers:119:18)

    at Object.<anonymous> (/Users/Cholin/Desktop/project/starter/app/api/v1/content.js:3:1)

    at Module._compile (node:internal/modules/cjs/loader:1275:14)

    at Module._compile (/Users/Cholin/Desktop/project/starter/node_modules/pirates/lib/index.js:136:24)

    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)

    at Object.newLoader [as .js] (/Users/Cholin/Desktop/project/starter/node_modules/pirates/lib/index.js:141:7)

    at Module.load (node:internal/modules/cjs/loader:1133:32)

    at Function.Module._load (node:internal/modules/cjs/loader:972:12)

    at Module.require (node:internal/modules/cjs/loader:1157:19)

    at require (node:internal/modules/helpers:119:18)

    at Loader.loadMainApi (/Users/Cholin/Desktop/project/starter/node_modules/lin-mizar/lin/loader/index.js:103:29)

    at new Loader (/Users/Cholin/Desktop/project/starter/node_modules/lin-mizar/lin/loader/index.js:26:14)

    at applyLoader (/Users/Cholin/Desktop/project/starter/app/app.js:79:18)

    at createApp (/Users/Cholin/Desktop/project/starter/app/app.js:104:3)

    at run (/Users/Cholin/Desktop/project/starter/app/starter.js:40:21)

    at Object.<anonymous> (/Users/Cholin/Desktop/project/starter/app/starter.js:48:1)

    at Module._compile (node:internal/modules/cjs/loader:1275:14)

    at Module._compile (/Users/Cholin/Desktop/project/starter/node_modules/pirates/lib/index.js:136:24)

    at Module._extensions..js (node:internal/modules/cjs/loader:1329:10)

    at Object.newLoader [as .js] (/Users/Cholin/Desktop/project/starter/node_modules/pirates/lib/index.js:141:7)

    at Module.load (node:internal/modules/cjs/loader:1133:32)

    at Function.Module._load (node:internal/modules/cjs/loader:972:12)

    at Module.require (node:internal/modules/cjs/loader:1157:19)


提问者:qq_听下雨的声音_0 2023-04-06 00:14

个回答

  • qq_听下雨的声音_0
    2023-04-09 21:33:35

    已解决