강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của heruse7318
heruse7318

câu hỏi đã được viết

[Gia hạn] Tạo NodeBird SNS bằng React

Sắp xếp thứ tự đồng bộ + nút

에러원인을 모르겠어요

Viết

·

319

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

Câu trả lời 2

1

zerocho님의 프로필 이미지
zerocho
Người chia sẻ kiến thức

belognsTo 오타입니다.

belongsTo

0

heruse7318님의 프로필 이미지
heruse7318
Người đặt câu hỏi

어므나 세상에

부끄럽습니다 

Hình ảnh hồ sơ của heruse7318
heruse7318

câu hỏi đã được viết

Đặt câu hỏi