Kass507
Kass507
SIASapphire - Imagine a framework
Created by Kass507 on 6/7/2024 in #sapphire-support
Error [EMPTY_MODULE]: A compatible class export was not found.
I'm trying to add code to the ready event that runs every "x" minutes. The code is a bit long and that's why I created a second file for the ready event. (Also, I want to have that separately.) I have everything that has to do with the function I want to implement in a folder called: "Extra: and inside you will have the index.js file (which will have the listener ready )and will have another file that will have "channels.js" where you will publish the function and a "functions.js" that will be in charge of making some canvas images. It would stay like this.
├── node_modules
├── package.json
└── src
├── commands
│ └── ping.js
├── index.js
└── listeners
└── ready.js
└── Extra
└── index.js
└── channels.js
└── functions.js
├── node_modules
├── package.json
└── src
├── commands
│ └── ping.js
├── index.js
└── listeners
└── ready.js
└── Extra
└── index.js
└── channels.js
└── functions.js
The problem is that it sends me an error in those 2 files. (channels.js and functions.js. I show you how the basic part of each file is.
7 replies