-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Multiple cloud functions in main.js #3646
Comments
You can have them in separate js files included in main.js, but you don't need to. Check for typos in your current setup. |
I can have multiple main.js? Wouldn't that just overwrite the one? Or having multiple .. js files and use include in the main |
You cannot have multiple main.js, but you can have multiple functions in it. As long as they have different names, they don't overwrite each other. I fixed my previous comment. |
Yeah, that strange because I could have sworn I have the stars function in there that comes on the example, as well as a new phone or push notifications, and I got errors. I'll try a different function later. Thanks for this. |
To include other js files in main.js, the code is |
Never mind, issue is resolved. To include other js files it is supposed to be |
@natanrolnik @davidju I have included a file called
|
your Main.js should only include the other files like:
|
I'm confused with having multiple functions in main.js.
If I have multiple cloud functions, I get a bad Jason response error when I run my code. I'm currently developing for Android with my parse server installed locally.
Should I put each function I need in a separate . js file and then include them in main.js???
Thanks
The text was updated successfully, but these errors were encountered: