Skip to content

Parse Cloud Issue #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pazalvin opened this issue Jan 30, 2016 · 2 comments
Closed

Parse Cloud Issue #70

pazalvin opened this issue Jan 30, 2016 · 2 comments

Comments

@pazalvin
Copy link

Can someone help me to fix this?

This is my cloud code:
var Parse = require('parse/node').Parse;

Parse.Cloud.define('Hello', function(req, res) {
res.success('Hi');
});

This is the errror:
Parse.Cloud.define('Hello', function(req, res) {
^
TypeError: Parse.Cloud.define is not a function

@pazalvin
Copy link
Author

can someone send me their skeleton app so i can follow :p i tried what's in the documentation but same error occurs on my side please help me

@gfosco
Copy link
Contributor

gfosco commented Jan 30, 2016

In the cloud code file, you shouldn't define Parse, it is set as a global by ParseServer (and it is mutated to add that method.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants