Skip to content

Require other .JS files on main.js #2424

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
itayAmza opened this issue Jul 30, 2016 · 2 comments
Closed

Require other .JS files on main.js #2424

itayAmza opened this issue Jul 30, 2016 · 2 comments

Comments

@itayAmza
Copy link

How do I require other js files in my main.js file?
When I add require('cloud/myAPI.js'); like i used to do on parse, I get 502 Bad Gateway error
My parse server is hosted on AWS

@dplewis
Copy link
Member

dplewis commented Jul 30, 2016

require('./name-here.js');

./ means same folder

@itayAmza
Copy link
Author

Thanks, It seems to be working

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