Read the statement by Michael Teeuw here.
[ERROR] Cannot access 'config' before initialization
-
I am new to the Magic Mirror community and I am looking for some help. I had the mirror up and working until I just installed the MMM-OnSpotify module today. Now, when I “npm run start:windows” it gives me the following info in the LOG:
[2025-02-18 19:10:13.198] [LOG] Starting MagicMirror: v2.30.0
[2025-02-18 19:10:13.436] [LOG] Loading config …
[2025-02-18 19:10:13.442] [LOG] config template file not exists, no envsubst
[2025-02-18 19:10:14.981] [INFO] Checking config file C:\Users\doug\MagicMirror\config\config.js …
[2025-02-18 19:10:15.107] [INFO] Your configuration file doesn’t contain syntax errors :)
[2025-02-18 19:10:15.109] [INFO] Checking modules structure configuration …
[2025-02-18 19:10:15.287] [ERROR] Cannot access ‘config’ before initializationWhen I exclude the MMM-OnSpotify module, this issue goes away and the other modules come up no problem. Can someone please help with this???
-
@tteetzen are you also using mmm-remotecontrol?
-
@tteetzen in the short term you can change the module config, by replacing the config.language with the value of setting from language at the top of config.js
-
@sdetweil I am not using the MMM-RemoteControl.
The only other modules I have so far is Nest-Status and Screencast.Changing the module config language to ‘false’ allowed the program to launch and everything is functional now. It is just using the module default now.
Thanks for the help!
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