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