Search code examples
javascriptherokuparse-platformparse-cloud-codeparse-server

Unable to reference other JS code after migrating Parse


After migrating from Parse.com to Parse Server on Heroku, I am unable to run cloud-code like this:

 var foo = require('cloud/test.js')

Before switching, this worked fine.


Solution

  • it turns out:

     require('./test.js') 
    

    is the correct way to do this (due to server on heroku being linux based, as I was told)