hwanfront / rnt-sales

0 stars 0 forks source link

BE 서버 실행 오류를 고친다 #41

Closed asdfg32145 closed 11 months ago

asdfg32145 commented 11 months ago

서버 실행 시 에러 발생, 실행 안됌

${directory}\node_modules\sequelize\src\associations\mixin.js:18
      throw new Error(`${this.name}.hasMany called with something that's not a subclass of Sequelize.Model`);
            ^
Error: Workspace.hasMany called with something that's not a subclass of Sequelize.Model
    at Function.hasMany (${directory}\node_modules\sequelize\src\associations\mixin.js:18:13)
    at associate (${directory}\server\src\models\workspace.ts:76:16)
    at Object.<anonymous> (${directory}\server\src\models\index.ts:22:19)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module.m._compile (${directory}\node_modules\ts-node\src\index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Object.require.extensions.<computed> [as .ts] (${directory}\node_modules\ts-node\src\index.ts:1621:12)     
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Function.Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19)