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.

    notificationFx.js (default alert module) problem

    Scheduled Pinned Locked Moved Troubleshooting
    6 Posts 2 Posters 3.0k Views 2 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.
    • ? Offline
      A Former User
      last edited by A Former User

      I cannot understand this error. I think there would be no problem, but it causes an error.

      [in my module]

      this.sendNotification('SHOW_ALERT', {
         timer:10000,
         title: "test",
         message : "say something"
      })
      

      This cause run-time exception error.
      DOMException: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
      in
      [notificationFx.js (line:91)]

      90: // append to body or the element specified in options.wrapper
      91: this.options.wrapper.insertBefore(this.ntf, this.options.wrapper.nextSibling);
      

      this.options.wrapper is < body > .
      this.ntf is div.ns-alert.ns-growl.ns-effect-jelly.ns-type-notice.
      this.options.wrapper.nextSibling is span.gr__tooltip.

      Is this notificationFx.js problem? But everybody except me uses this without a problem.
      I’m testing this on Mac OSX with Chrome in node serveronly mode.

      R 1 Reply Last reply Reply Quote 0
      • R Offline
        roramirez Core Contributors @Guest
        last edited by

        @Sean If you start with npm start dev, do you have the same problem?

        Easy module development with MagicMirror Module Template

        ? 2 Replies Last reply Reply Quote 0
        • ? Offline
          A Former User @roramirez
          last edited by

          @roramirez tomorrow I’ll try it.

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

            @roramirez Thanks, with npm start dev, it works.

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              roramirez Core Contributors @Guest
              last edited by

              @Sean So, can be there a bug with using that browser. What version of Chrome is?

              Easy module development with MagicMirror Module Template

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

                @roramirez
                It was 60.0.3112.101 (official) (64bit) on Mac OSX Sierra 10.12.6 (in MBP Late 2013 15" Retina / i7 2.3Ghz 16GB DDR3)

                1 Reply Last reply Reply Quote 0

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