강의

멘토링

로드맵

Inflearn Community Q&A

heruse7318's profile image
heruse7318

asked

[Renewal] Creating NodeBird SNS with React

sequelize sync + nodemon

에러원인을 모르겠어요

Written on

·

303

0

node app을 했더니 이런 에러가 났는데 원인을 모르겟어요

D:\005_Study\React\react-nodebird\prepare\back\models\comment.js:16

    db.Comment.belognsTo(db.Post);

               ^

TypeError: db.Comment.belognsTo is not a function

    at Function.Comment.associate (D:\005_Study\React\react-nodebird\prepare\back\models\comment.js:16:16)

    at D:\005_Study\React\react-nodebird\prepare\back\models\index.js:19:19

    at Array.forEach ()

    at Object. (D:\005_Study\React\react-nodebird\prepare\back\models\index.js:17:17)

    at Module._compile (internal/modules/cjs/loader.js:1138:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)

    at Module.load (internal/modules/cjs/loader.js:986:32)

    at Function.Module._load (internal/modules/cjs/loader.js:879:14)

    at Module.require (internal/modules/cjs/loader.js:1026:19)

    at require (internal/modules/cjs/helpers.js:72:18)

reduxreactexpressnodejsNext.js

Answer 2

1

zerocho님의 프로필 이미지
zerocho
Instructor

belognsTo 오타입니다.

belongsTo

0

heruse7318님의 프로필 이미지
heruse7318
Questioner

어므나 세상에

부끄럽습니다 

heruse7318's profile image
heruse7318

asked

Ask a question