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

MM crashes when I try to start my own module.

Scheduled Pinned Locked Moved Solved Development
6 Posts 3 Posters 745 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.
  • V Offline
    vredevol
    last edited by vredevol May 1, 2020, 9:14 AM May 1, 2020, 8:42 AM

    Hi, I’m a beginner in the whole Module developmment thing.
    but as I created a first test module, everytime I wanted to start the MM with my module in the config it crashed. If I use default Modules it works fine. here are two screenshots. the first one is my error message and the second one is how my MM looks oon booutup with my module in the config.

    screenshot 1: https://gyazo.com/b33e81a5acfbaa7b0191c1a49c0ecddb.png
    screenshot 2: https://i.gyazo.com/f8a216fdc602a0d890dbbf4b34c2a5b1.png

    edit: i tried putting my code into the js file of a default module and the code works so maybe it’s somethng in the name resolution of the module …

    1 Reply Last reply Reply Quote 0
    • ? Offline
      A Former User
      last edited by May 1, 2020, 9:43 AM

      you have an error in the js file,

      can you show a part of it ?

      1 Reply Last reply Reply Quote 0
      • V Offline
        vredevol
        last edited by May 1, 2020, 9:54 AM

        do you mean the config js file or the module js file?

        1 Reply Last reply Reply Quote 0
        • ? Offline
          A Former User
          last edited by May 1, 2020, 10:09 AM

          the module, because i think you have make an error at the start

          1 Reply Last reply Reply Quote 0
          • V Offline
            vredevol
            last edited by May 1, 2020, 10:32 AM

            https://i.gyazo.com/0ff68f840855d70a80817f3bd75882e0.png

            S 1 Reply Last reply May 1, 2020, 11:44 AM Reply Quote 0
            • S Offline
              sdetweil @vredevol
              last edited by May 1, 2020, 11:44 AM

              @vredevol getDom() MUST return AT LEAST an htmlElement

              add return document.createElement(‘div’)

              see my sample module
              https://github.com/sdetweil/SampleModule

              Sam

              How to add modules

              learning how to use browser developers window for css changes

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