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

Config Error

Scheduled Pinned Locked Moved Troubleshooting
newcodeerror
39 Posts 5 Posters 7.3k Views 5 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.
  • S Away
    sdetweil @PHAGE.GOV
    last edited by May 20, 2020, 10:40 PM

    @PHAGE-GOV said in Config Error:

    /home/pi/MagicMirror/config/config.js:41
    Welcome_message “string”
    ^^^^^^^^^^^^^^^

    SyntaxError: Unexpected identifier

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    P 1 Reply Last reply May 20, 2020, 10:45 PM Reply Quote 0
    • P Offline
      PHAGE.GOV @sdetweil
      last edited by May 20, 2020, 10:42 PM

      @sdetweil would it be a good idea at this point to just delete and reinstall lol

      1 Reply Last reply Reply Quote 0
      • P Offline
        PHAGE.GOV @sdetweil
        last edited by May 20, 2020, 10:45 PM

        @sdetweil wait so how do i fix that line? like what would you recomend?

        S 1 Reply Last reply May 20, 2020, 11:02 PM Reply Quote 0
        • S Away
          sdetweil @PHAGE.GOV
          last edited by May 20, 2020, 11:02 PM

          @PHAGE-GOV that is what you have to figure out… run the syntax checker

          cd ~/MagicMirror
          npm run config:check
          

          the error is typically reported on the line following the error, but maybe not in this case.
          read this
          https://forum.magicmirror.builders/topic/4231/how-to-add-modules-for-absolute-beginners?_=1589635889121

          you are asking for people to do the work for you, and not learning… time to learn

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          P 3 Replies Last reply May 20, 2020, 11:34 PM Reply Quote 0
          • P Offline
            PHAGE.GOV @sdetweil
            last edited by May 20, 2020, 11:34 PM

            @sdetweil okay mom lmaoo, and yes, i agree

            1 Reply Last reply Reply Quote 0
            • P Offline
              PHAGE.GOV @sdetweil
              last edited by May 20, 2020, 11:44 PM

              so sensei @sdetweil , i got this.

              hecking file...  /home/pi/MagicMirror/config/config.js
              Line 41 col 4 Parsing error: Unexpected token Welcome_message
              
              

              so does that just mean i should delete that line altogether?

              S 1 Reply Last reply May 20, 2020, 11:52 PM Reply Quote 0
              • P Offline
                PHAGE.GOV @sdetweil
                last edited by May 20, 2020, 11:51 PM

                @sdetweil wait so it said the options were “string” and “false” for “welcome message” thats where its wrong, so i think its fixed?? ill update if it isnt fixed lol

                1 Reply Last reply Reply Quote 0
                • S Away
                  sdetweil @PHAGE.GOV
                  last edited by May 20, 2020, 11:52 PM

                  @PHAGE-GOV said in Config Error:

                  so does that just mean i should delete that line altogether?

                  no idea… maybe it is an important line,

                  but as I said, the error is reported on the line after the actual problem

                  if u read the linked getting started

                  you would see that elements in config.js are

                      sometext : somevalue
                  

                  where somevalue MUST be quoted before and after (single or double doesn’t matter, as long as both ends are the same)
                  unless somevalue is true/false, or a number

                  AND you need to add a continuation char (comma ,) at the end to the line if the next line
                  is include in this info, or more info is comming (another module config for example)

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  P 1 Reply Last reply May 20, 2020, 11:55 PM Reply Quote 0
                  • P Offline
                    PHAGE.GOV @sdetweil
                    last edited by May 20, 2020, 11:55 PM

                    @sdetweil yeah ill try that, i tried fixing “string” because it had an extra space in it but i got the no config.js file again, i will try looking for the other stuff rn

                    S L 2 Replies Last reply May 20, 2020, 11:57 PM Reply Quote 0
                    • S Away
                      sdetweil @PHAGE.GOV
                      last edited by May 20, 2020, 11:57 PM

                      @PHAGE-GOV said in Config Error:

                      in it but i got the no config.js file again,

                      if it has an error in the config, it throws up its hands and says no config…
                      yes there is one, but he can’t tell what to do

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      P 1 Reply Last reply May 21, 2020, 12:23 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 2 / 4
                      2 / 4
                      • First post
                        19/39
                        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