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.

    Magic Mirror 2 - Please create a config file error

    Scheduled Pinned Locked Moved Troubleshooting
    8 Posts 3 Posters 7.3k Views 3 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.
    • R Offline
      Rpickp
      last edited by

      I was able to set up the MagicMirror and I was editing the modules when i got this error. Tried to fix it but eventually gave up and pasted the sample config file from GitHub thinking it would fix the problem but it didnt work. What am I doing wrong?

      Can I just uninstall the MagicMirror?

      Why didnt the sample config file fix the problem? Is the config file modified when I install it?

      1 Reply Last reply Reply Quote 0
      • C Offline
        cyberphox
        last edited by

        did you name it correctly? config.js and not config.js.sample

        Full time Dad, DJ and entertainer and lover of technology.

        1 Reply Last reply Reply Quote 1
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer
          last edited by

          Unless the sample has been modified. :-/

          In which case, you would procure a fresh config.js.sample file from the repo and follow these directions

          https://forum.magicmirror.builders/topic/4528/how-to-create-a-working-config-for-absolute-beginners

          Create a working config
          How to add modules

          R 1 Reply Last reply Reply Quote 1
          • R Offline
            Rpickp
            last edited by

            @cyberphox said in Magic Mirror 2 - Please create a config file error:

            config.js

            I used the installer script i think it was already renamed. Should I make any changes in the config file?

            Mykle1M 1 Reply Last reply Reply Quote 0
            • R Offline
              Rpickp @Mykle1
              last edited by

              @Mykle1

              Great! I will go back and give this a try.

              1 Reply Last reply Reply Quote 0
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @Rpickp
                last edited by

                @Rpickp said in Magic Mirror 2 - Please create a config file error:

                I used the installer script i think it was already renamed. Should I make any changes in the config file?

                What you should get from the installation of MM is a file called config.js.sample. If you no longer have this file then it is likely that you renamed it instead of copying it and renaming the copy. Once you obtain a new, clean config.js.sample you can follow the directions in the link I gave you.

                Yes, you can make any changes you like to the config.js file once you’ve followed the directions above

                Create a working config
                How to add modules

                R 1 Reply Last reply Reply Quote 1
                • R Offline
                  Rpickp @Mykle1
                  last edited by

                  @Mykle1

                  It worked! Thank you so much!

                  Mykle1M 1 Reply Last reply Reply Quote 0
                  • Mykle1M Offline
                    Mykle1 Project Sponsor Module Developer @Rpickp
                    last edited by

                    @Rpickp said in Magic Mirror 2 - Please create a config file error:

                    It worked! Thank you so much!

                    Excellent! :-)

                    Create a working config
                    How to add modules

                    1 Reply Last reply Reply Quote 1
                    • 1 / 1
                    • First post
                      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