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

electron-rebuild problems with MagicMirror 2.22.0

Scheduled Pinned Locked Moved Solved Troubleshooting
53 Posts 5 Posters 13.2k Views 6 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.
  • S Away
    sdetweil @karsten13
    last edited by Jan 7, 2023, 3:43 PM

    @karsten13 yes, that’s what I think we come to but doesn’t help any existing broken modules

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    K 1 Reply Last reply Jan 7, 2023, 3:49 PM Reply Quote 0
    • S Away
      sdetweil @karsten13
      last edited by Jan 7, 2023, 3:44 PM

      @karsten13 docker is a pita with this stuff. too much/not enough in the container. which is supposed to be immutable.

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • K Offline
        KristjanESPERANTO Module Developer @sdetweil
        last edited by KristjanESPERANTO Jan 7, 2023, 3:50 PM Jan 7, 2023, 3:49 PM

        @sdetweil As a soft step, the broken modules could switch to @electron/rebuild. This should also work for docker.

        W S 2 Replies Last reply Jan 7, 2023, 3:54 PM Reply Quote 0
        • W Offline
          wishmaster270 Module Developer @KristjanESPERANTO
          last edited by wishmaster270 Jan 7, 2023, 3:55 PM Jan 7, 2023, 3:54 PM

          @KristjanESPERANTO

          I have a docker installation running for development here on my notebook.
          Everytime a module needs “npm install” I exec to the container and run the command in the container cause there will be called the correct npm and node version in the container and not the ones I currently use on my notebook.
          In this case the directory structure is the same as with a locally installed MagicMirror and the postinstall script will work as excepted.

          K 1 Reply Last reply Jan 7, 2023, 5:26 PM Reply Quote 1
          • K Offline
            karsten13 @wishmaster270
            last edited by karsten13 Jan 7, 2023, 5:45 PM Jan 7, 2023, 5:26 PM

            @wishmaster270 said in electron-rebuild problems with MagicMirror 2.22.0:

            and the postinstall script will work as excepted.

            yes, will work, but all the changes in the node_modules folder of mm are gone with the next restart of the container …

            W 1 Reply Last reply Jan 7, 2023, 5:58 PM Reply Quote 0
            • W Offline
              wishmaster270 Module Developer @karsten13
              last edited by Jan 7, 2023, 5:58 PM

              @karsten13
              In case of electron-rebuild this is no problem as it is only required during compile but not at runtime.

              K 1 Reply Last reply Jan 7, 2023, 6:00 PM Reply Quote 0
              • K Offline
                karsten13 @wishmaster270
                last edited by Jan 7, 2023, 6:00 PM

                @wishmaster270

                o.k., but where are the compile results stored?

                W 1 Reply Last reply Jan 7, 2023, 6:00 PM Reply Quote 0
                • W Offline
                  wishmaster270 Module Developer @karsten13
                  last edited by wishmaster270 Jan 7, 2023, 6:03 PM Jan 7, 2023, 6:00 PM

                  @karsten13
                  They are stored in the node_modules folder of the module which should be persistent

                  Edit: Do not misunderstand me. In my opinion the best way to solve the electron-rebuild problems of a lot of modules would be to put “@electron/rebuild” as a dependency to “package.json” of MagicMirror.

                  K 2 Replies Last reply Jan 7, 2023, 6:03 PM Reply Quote 0
                  • K Offline
                    karsten13 @wishmaster270
                    last edited by Jan 7, 2023, 6:03 PM

                    @wishmaster270 said in electron-rebuild problems with MagicMirror 2.22.0:

                    @karsten13
                    They are stored in the node_modules folder of the module which should be persistent

                    thats good, so the construction with installing electron-rebuild in mm folder has no side effects and works also in a docker setup.

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      karsten13 @wishmaster270
                      last edited by Jan 7, 2023, 6:21 PM

                      @wishmaster270 said in electron-rebuild problems with MagicMirror 2.22.0:

                      Edit: Do not misunderstand me. In my opinion the best way to solve the electron-rebuild problems of a lot of modules would be to put “@electron/rebuild” as a dependency to “package.json” of MagicMirror.

                      I don’t have a final opinion on that yet, but if so, we should put it under optionalDependencies as electron

                      W S 2 Replies Last reply Jan 7, 2023, 6:41 PM Reply Quote 1
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 5 / 6
                      5 / 6
                      • First post
                        41/53
                        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