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 edit compliments.js

    Scheduled Pinned Locked Moved Troubleshooting
    12 Posts 3 Posters 2.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.
    • S Offline
      sdetweil @thgmirror
      last edited by

      @thgmirror the built-in checker is

      from the MagicMirror folder do

      npm run config:check
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      thgmirrorT M 2 Replies Last reply Reply Quote 0
      • thgmirrorT Offline
        thgmirror @sdetweil
        last edited by

        @sdetweil I know:-)

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @thgmirror
          last edited by

          @thgmirror typically ‘unexpected token’ means the line before was missing a trailing comma

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • M Offline
            mayfield @sdetweil
            last edited by

            @sdetweil said in Can't edit compliments.js:

            @thgmirror the built-in checker is

            from the MagicMirror folder do

            npm run config:check
            

            Yes this was going to be another question I wanted to ask as that doesn’t work on mine and I’m not sure why yet

            I followed this site to flash a SD card https://github.com/guysoft/MagicMirrorOS

            and when I run that I get this I guess I need to install that
            alt text

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @mayfield
              last edited by sdetweil

              @mayfield

              ah mmos…
              then u have to run the command inside the docker container where mm is installed

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                mayfield @thgmirror
                last edited by

                @thgmirror said in Can't edit compliments.js:

                Hi @mayfield,

                Most of the times, commas are missing (here at least after the line with the position). Use the builtin function to check if it is valid…I use a website where you can enter the whole content of your config.js:
                https://esprima.org/demo/validate.html

                Greetings
                Thomas

                It was a comma on the position line lol Its working again thanks for the tip

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mayfield @sdetweil
                  last edited by

                  @sdetweil said in Can't edit compliments.js:

                  @mayfield

                  ah mmos…
                  then u have to run the command inside the docker container where mm is installed

                  OK cheers I’ll do some reading and thanks everyone for the help much appreciated

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