반응형
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
'Solve to troubleshoot' 카테고리의 다른 글
minikube start 에러 (0) | 2021.03.04 |
---|---|
vagrant virtualbox 에러 (0) | 2021.03.04 |
Handshake terminated by server: 403 (ACCESS-REFUSED) with message "ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN (0) | 2020.09.01 |
file "manage.py" ) from exc SyntaxError: invalid syntax (0) | 2020.06.02 |
SyntaxError: Unexpected identifier in index.ejs while compiling ejs (0) | 2020.05.20 |