0
Parse 및 Node.js부터 시작하겠습니다. Parse db에서 데이터를 검색하려고하는데 관리 할 수 없습니다.정의되지 않은 속성 'prototype'을 읽을 수 없습니다.
var Parse = require('parse').Parse;
Parse.initialize("*************", "*****************");
module.exports = {
index: function(req, res, next){
var query = new Parse.Query(Parse.Event);
query.find({
success: function(results) {
console.log(results);
},
error: function(error) {
console.log(error.message);
}
});
}
}
그리고이 오류가있어 :
TypeError: Cannot read property 'prototype' of undefined
at Object.Parse.Query (/Users/tchiss_a/test/webapp/node_modules/parse/build/parse-latest.js:7771:33)
at module.exports.index (/Users/tchiss_a/test/webapp/api/Events.js:7:20)
at Layer.handle [as handle_request] (/Users/tchiss_a/test/webapp/node_modules/express/lib/router/layer.js:82:5)
at next (/Users/tchiss_a/test/webapp/node_modules/express/lib/router/route.js:100:13)
at Route.dispatch (/Users/tchiss_a/test/webapp/node_modules/express/lib/router/route.js:81:3)
at Layer.handle [as handle_request] (/Users/tchiss_a/test/webapp/node_modules/express/lib/router/layer.js:82:5)
at /Users/tchiss_a/test/webapp/node_modules/express/lib/router/index.js:235:24
at Function.proto.process_params (/Users/tchiss_a/test/webapp/node_modules/express/lib/router/index.js:313:12)
at /Users/tchiss_a/test/webapp/node_modules/express/lib/router/index.js:229:12
at Function.match_layer (/Users/tchiss_a/test/webapp/node_modules/express/lib/router/index.js:296:3)
누군가가 제발 도와 줄 수 있습니까?
에'Parse.Event'는'Parse.Query'는 생성자 인수로 예상하는 아마 아니다. "parse"모듈에 대한 링크를 제공해 주시겠습니까? –
구문 분석 모듈? 공식 Parse npm을 사용하고 있습니다. http://blog.parse.com/2012/10/11/the-javascript-sdk-in-node-js/ –
[구문 분석 소스] (https : //)에서 '이벤트'개체를 찾을 수 없습니다. parse.Events' : "'Parse.Events는 사용자 편의를 위해 제공되는 백본 이벤트 모듈의 포크입니다." ". 정의되지 않은 "이벤트"에는 프로토 타입이 없으므로 오류를 설명합니다. –