Comment on page
Cannot find module / Cannot open file error on startup
This usually means you have forgotten to do one of two things:
- 1.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 Python
py <your file>.Remember that if you unarchived your files in to a folder, you may need to move them out of that folder.
- 2.Your modules haven't installed. For node.js this usually means you've forgotten to upload your
package-lock.jsonfiles 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 a
requirements.txtfile with each dependency on a new line (or you can specify your requirements in the startup tab under
Additional Dependencieswith a space between each one).