Read the statement by Michael Teeuw here.
After upgrade: Clock module getting error: "Can't find variable: moment"
-
I initially updated MagicMirror2 to V2.1.1 through git pull but then started getting blank screen running serveronly and so I reinstalled entire MagicMirror2 and modules. Started serveronly again and getting blank screen again. When I look in system log file, I’m getting the error:
Message: console message: http://localhost:8080/modules/default/clock//clock.js @49: ReferenceError: Can’t find variable: moment
Message: console message: http://localhost:8080/modules/default/clock//clock.js @77: ReferenceError: Can’t find variable: moment
Did I miss installing a dependency?
I’m running MagicMirror on Pi Zero, Raspian Jessie -
@tkotz8621 you have to run npm install in the MagicMirror directory, which will itself call npm install in the vendor directory for moment.js
-
Thanks for the quick response strawberry 3.141. I thought I ran ‘npm install’ but I ran it as you suggested and now clock is working. Thanks again.
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