@Illimar said in Need help with modules not displaying:

getDaysLeft() and dateFormat() are defined as member methods of the module, but you are using them as general functions.

var days = getDaysLeft(i);

It should be;

var days = this.getDaysLeft(i);

Or, even better is; to define getDaysLeft as a general function inside of getDom(), because only there the function is used once and nowhere else. It doesn’t need to be defined as a member of the module.

getDom: function() { const getDaysLeft = (i, config) => { const date = Date.now(); ... } let wrapper = document.createElement('div'); wrapper.style.color = this.config.textColor; for (let i in this.config.dates) { let days = getDaysLeft(i, this.config); ...