Read the statement by Michael Teeuw here.
using a library in a module
-
Hi,
I’m trying to use https://github.com/onury/tasktimer, I can get it to work in node_helper but
the module doesn’t see it. I’ve tried adding
// Define required scripts.getScripts: function () { return ["modules/MMM-GooglePhotos/node_modules/tasktimer/lib/tasktimer.js"] },and using
const timer = TaskTimer(1000)in a function but I get a TaskTimer not defined error.
Any sugestions?
-Tomas
-
@tomasf i don’t know for certain, but you could open the developers window and look at the sources tab to see what was actually imported and setup…
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login