• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

[ERROR] Cannot access 'config' before initialization

Scheduled Pinned Locked Moved Unsolved Troubleshooting
4 Posts 2 Posters 247 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    tteetzen
    last edited by Feb 19, 2025, 1:27 AM

    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 initialization

    When I exclude the MMM-OnSpotify module, this issue goes away and the other modules come up no problem. Can someone please help with this???

    S 2 Replies Last reply Feb 19, 2025, 1:37 AM Reply Quote 0
    • S Offline
      sdetweil @tteetzen
      last edited by Feb 19, 2025, 1:37 AM

      @tteetzen are you also using mmm-remotecontrol?

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      T 1 Reply Last reply Feb 19, 2025, 3:12 AM Reply Quote 0
      • S Offline
        sdetweil @tteetzen
        last edited by Feb 19, 2025, 2:02 AM

        @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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • T Offline
          tteetzen @sdetweil
          last edited by Feb 19, 2025, 3:12 AM

          @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!

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          1 / 1
          • First post
            1/4
            Last post
          Enjoying MagicMirror? Please consider a donation!
          MagicMirror created by Michael Teeuw.
          Forum managed by Sam, technical setup by Karsten.
          This forum is using NodeBB as its core | Contributors
          Contact | Privacy Policy