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.
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.Solution:Jump to solution
Prefix the file names with a _
Every file is expected to be a class export, unless it's skipped with a leading _
Alternatively move the folder out of the listeners folder...
2 Replies