Cannot find module / Cannot open file error on startup
This usually means you have forgotten to do one of two things:
You haven't set your main file in the startup tab, your main file is the file that is used to start your bot (in Node the file that you run with
node <your file>
and for Pythonpy <your file>.
Remember that if you unarchived your files in to a folder, you may need to move them out of that folder.Your modules haven't installed. For node.js this usually means you've forgotten to upload your
package.json
andpackage-lock.json
files in the home directory (/home/container
) or you are getting an error upon your modules install which you should look for. For Python this usually means you haven't uploaded arequirements.txt
file with each dependency on a new line (or you can specify your requirements in the startup tab underAdditional Dependencies
with a space between each one).
Last updated