본문 바로가기
Solve to troubleshoot

Cannot read property 'coroutine' of undefined

by 살길바라냐 2021. 2. 24.
TypeError: Cannot read property 'coroutine' of undefined
    at makeCo (D:\test\fastify\node_modules\sequelize-hierarchy\lib\utils.js:103:31)
    at module.exports (D:\test\fastify\node_modules\sequelize-hierarchy\lib\modelExtends.js:21:17)
    at module.exports (D:\test\fastify\node_modules\sequelize-hierarchy\lib\index.js:28:23)
    at Object.<anonymous> (D:\test\fastify\app\helper\db.js:1:49)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)

 

이유 :  Sequelize 6이상은  Bluebird 사용하지 않음

해결 방법 : 현재 sequelize-hierarchy 을 사용하려면 Sequelize 5이하 버전을 사용하면 된다.

728x90
반응형