• 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.

Can't find out what I did wrong in my config.js...

Scheduled Pinned Locked Moved Unsolved Troubleshooting
7 Posts 3 Posters 1.7k 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.
  • C Offline
    Cr4z33
    last edited by Cr4z33 Nov 17, 2018, 4:15 PM Nov 17, 2018, 2:25 PM

    First of all why are all online JavaScript linters completely useless for our config.js file? :thinking_face:

    They all report completely no sense mistakes while the REAL error might be located in somewhere else line.

    Now back in topic I might have edited/canceled something that has screwed up the file by ending with the CONFIG.JS screen when launching MM. :face_with_cold_sweat:

    Can someone please help me finding the mistake?

    https://pastebin.com/BAQTi012

    1 Reply Last reply Reply Quote 0
    • E Online
      evroom
      last edited by Nov 17, 2018, 3:40 PM

      Perhaps this is a start, provided I copy/pasted it right ?
      Although I think you are familiar with this and used other linters to find the ‘mistake’.

      pi@MagicPi:~/MagicMirror $ cd ~/MagicMirror; npm run config:check
      
      Checking file...  /home/pi/MagicMirror/config/config.js
      Line 213 col 42 Missing semicolon.
      Line 218 col 18 Missing semicolon.
      Line 222 col 5 Expected '}' to match '{' from line 190 and instead saw '{'.
      Line 223 col 7 Expected ']' to match '[' from line 28 and instead saw 'module'.
      Line 223 col 13 Expected '}' to match '{' from line 11 and instead saw ':'.
      Line 223 col 14 Missing semicolon.
      Line 224 col 7 Expected an assignment or function call and instead saw an expression.
      Line 224 col 15 Missing semicolon.
      Line 224 col 7 Unrecoverable syntax error. (94% scanned).
      

      I think you missed a } around line 220.

      The “Missing semicolon” messages normally are just nitpicking, but the "Expected ‘}’ to match ‘{’ " are usually true.

      MagicMirror version: 2.30.0
      Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      Test environment:
      MagicMirror version: v2.30.0
      Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
      Raspbian GNU/Linux 12 (bookworm)

      C 2 Replies Last reply Nov 17, 2018, 3:42 PM Reply Quote 0
      • C Offline
        Cr4z33 @evroom
        last edited by Nov 17, 2018, 3:42 PM

        @evroom thanks for the help I give it immediately a look. :)

        Also didn’t know that terminal command.

        1 Reply Last reply Reply Quote 0
        • C Offline
          Cr4z33 @evroom
          last edited by Nov 17, 2018, 3:48 PM

          @evroom found out the mistake thanks to your suggestion:

          I missed to add an additional close curly bracket after line 213!

          1 Reply Last reply Reply Quote 0
          • E Online
            evroom
            last edited by Nov 17, 2018, 4:00 PM

            Glad to help.
            So many errors after only one mistake (the most common to make; we all did it sometime I guess) :slightly_smiling_face:

            MagicMirror version: 2.30.0
            Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            Test environment:
            MagicMirror version: v2.30.0
            Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
            Raspbian GNU/Linux 12 (bookworm)

            C 1 Reply Last reply Nov 17, 2018, 4:01 PM Reply Quote 0
            • C Offline
              Cr4z33 @evroom
              last edited by Nov 17, 2018, 4:01 PM

              @evroom lol indeed! :grinning_face_with_smiling_eyes:

              1 Reply Last reply Reply Quote 0
              • B Offline
                BKeyport Module Developer
                last edited by Nov 18, 2018, 4:44 AM

                Wait, you can audit the config file right from NPM?

                Daaaaaaaaaaaaaaaaaaaang.

                The "E" in "Javascript" stands for "Easy"

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