Read the statement by Michael Teeuw here.
MM crashes when I try to start my own module.
-
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.pngedit: 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 …
-
you have an error in the js file,
can you show a part of it ?
-
do you mean the config js file or the module js file?
-
the module, because i think you have make an error at the start
-
-
@vredevol getDom() MUST return AT LEAST an htmlElement
add return document.createElement(‘div’)
see my sample module
https://github.com/sdetweil/SampleModule