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.

    jquery not working on magic mirror

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 3 Posters 3.2k 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
      Ryroro
      last edited by Ryroro

      Hey guys, I just finish building the mirror and finish setting up all the basics of the magic mirror. The default modules run smoothly. However, whenever I try to run something related to jquery, the mirror just black out. I tired https://github.com/masters1222/mm-hide-all this guy’s module, with the library in it, but there is still nothing on display. I tried inserting source in the index.html, still nothing. And I find that the mirror will work again only if I delete reference to the library of jQuery.
      I use a raspbian system and installed the latest MagicMirror2.

      1 Reply Last reply Reply Quote 0
      • strawberry 3.141S Offline
        strawberry 3.141 Project Sponsor Module Developer
        last edited by

        did you try this?

        getScripts: function() {
        		return [this.file("js/jquery.js")];
        },
        

        in mm-hide-all.js

        Please create a github issue if you need help, so I can keep track

        1 Reply Last reply Reply Quote 0
        • R Offline
          Ryroro
          last edited by

          thanks, but the whole thing is still black. Nothing’s showing up

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            alexyak @Ryroro
            last edited by alexyak

            @Ryroro could you try run the MM with dev tools and check the console out for errors.

            npm start dev

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              Ryroro @alexyak
              last edited by

              @alexyak
              thanks, everything is showing up again, except for the mm-hide-all module, and I don’t see any error on the console. But the button in the module just don’t show up.

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