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.

    auto-booting but no modules (no warning with config file)

    Scheduled Pinned Locked Moved Solved Troubleshooting
    24 Posts 2 Posters 8.8k 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.
    • S Do not disturb
      sdetweil @will23110
      last edited by

      @will23110 said in auto-booting but no modules (no warning with config file):

      Uncaught SyntaxError: Invalid or unexpected token (translator.js:1)
      Uncaught SyntaxError: Invalid or unexpected token (loader.js:1

      so, I would use some editor to look at these two files in

      MagicMirror/js

      line 1 of each is a comment (/* */)

      maybe there was an error on the memory card when u rebooted…

      Uncaught ReferenceError: Translator is not defined (misn.js:452)

      this error is because of the prior error on the translator.js file

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • W Offline
        will23110
        last edited by

        so I’ve got translator.js open, it says at the top

        /* global config, vendor, MM, Module */
        /* MagicMirror
         * Module and file loaders.
         * Etc...
        

        should it be

         /* global config, vendor, MM, Module */
         /* MagicMirror*/
         /* Module and file loaders.*/
         /* Etc...
        
        S 1 Reply Last reply Reply Quote 0
        • W Offline
          will23110
          last edited by

          but in the repository for MagicMirror on github its the same, how do I quickly check for differences instead of having to go through the entire thing and comparing to another file

          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @will23110
            last edited by

            @will23110 no, 1st is ok

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • S Do not disturb
              sdetweil @will23110
              last edited by

              @will23110 compare, i do not know

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • W Offline
                will23110
                last edited by

                Okay, I’ll check through it and correct anything that may be wrong

                1 Reply Last reply Reply Quote 0
                • W Offline
                  will23110
                  last edited by

                  so I had an idea to check through it fast, I copied the loader.js info off of github and paste it into the find (ctrl+f) window, the whole document is highlighted, meaning there are no errors… could it be something else??

                  1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @will23110
                    last edited by

                    @will23110 said in auto-booting but no modules (no warning with config file):

                    Uncaught ReferenceError: Translator is not defined (misn.js:452)

                    this one bothers me, I can’t find that file anywhere (misn.js), unless that is acut/paste/typo

                    based on the fact that files look ok, I would suggest doing an fsck (file system check) against the memory card

                    you will probably have to move it to another system to do that… windows cannot do it

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      will23110
                      last edited by

                      how would I go about doing that on a pi?

                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @will23110
                        last edited by

                        @will23110 a google search says

                        https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=179361

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        1 Reply Last reply Reply Quote 0
                        • W Offline
                          will23110
                          last edited by

                          what do you mean by misn.js, I will have a look at that site, thanks

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @will23110
                            last edited by sdetweil

                            @will23110 said in auto-booting but no modules (no warning with config file):

                            what do you mean by misn.js

                            the error u posted says

                            Uncaught ReferenceError: Translator is not defined (misn.js:452)

                            i see a use of Translator in main.js
                            but cannot find a misn.js

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            1 Reply Last reply Reply Quote 0
                            • W Offline
                              will23110
                              last edited by

                              oh, typo haha, it’s supposed to say main.js, there are no errors in that one either, sorry about that

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @will23110
                                last edited by

                                @will23110 ok

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                1 Reply Last reply Reply Quote 0
                                • W Offline
                                  will23110
                                  last edited by

                                  wait so from the site you gave me, if I run

                                  sudo touch /forcefsck; sudo reboot
                                  

                                  will that break it?

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @will23110
                                    last edited by sdetweil

                                    @will23110 no, that forces the fsck on next boot, then reboots

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • W Offline
                                      will23110
                                      last edited by

                                      oh I see, I’ll try it now

                                      1 Reply Last reply Reply Quote 0
                                      • W Offline
                                        will23110
                                        last edited by

                                        I tried it and it did nothing…

                                        1 Reply Last reply Reply Quote 0
                                        • W Offline
                                          will23110
                                          last edited by

                                          so there was one issue in each .js file, I ended up pasting the entire .js repository back in from the GitHub files, that seems it fixed it.

                                          for people having this issue when it black screens, run

                                          cd MagicMirror
                                          npm start dev
                                          

                                          that starts up magic mirror with dev options, go to the second tab, there will be files that have errors or security issues, that’s what it was for mine anyway… It’s fixed now, thanks a lot for helping.

                                          1 Reply Last reply Reply Quote 0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          • 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