MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    SOLVED MM crashes when I try to start my own module.

    Development
    3
    6
    52
    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
      vredevol last edited by vredevol

      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
      • ?
        A Former User last edited by

        you have an error in the js file,

        can you show a part of it ?

        1 Reply Last reply Reply Quote 0
        • V
          vredevol last edited by

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

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User last edited by

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

            1 Reply Last reply Reply Quote 0
            • V
              vredevol last edited by

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

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

                @vredevol getDom() MUST return AT LEAST an htmlElement

                add return document.createElement(‘div’)

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

                Sam

                Create a working config
                How to add modules

                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 Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                This forum is using NodeBB as its core | Contributors
                Contact | Privacy Policy