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.

    MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    43 Posts 7 Posters 5.9k Views 7 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 Offline
      sdetweil @p1lspeda
      last edited by sdetweil

      @p1lspeda have you tried the upgrade script?
      I believe the module requires 2.31.0 as a minimum MM version now

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • KristjanESPERANTOK Offline
        KristjanESPERANTO Module Developer @p1lspeda
        last edited by

        @p1lspeda said in MMM-PublicTransportHafas - Error when loading - DeparturFetcher.mjs:

        ### VERSIONS: electron: 32.2.7; used node: 22.14.0; installed node: 22.14.0; npm: 10.9.2; pm2: 5.4.3

        You still need to upgrade MagicMirror. I recommend the official upgrade process.

        P 1 Reply Last reply Reply Quote 0
        • V Offline
          Volkae
          last edited by

          I used the update script again and now MM is 2.31.0
          MMM-PublicTransportHafas works again, that`s fine, but now MMM-SmartWebDisplay is gone…
          Not fine…

          S 1 Reply Last reply Reply Quote 1
          • S Offline
            sdetweil @Volkae
            last edited by sdetweil

            @Volkae any errors listed in MagicMirror startup?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            V 1 Reply Last reply Reply Quote 0
            • V Offline
              Volkae @sdetweil
              last edited by

              @sdetweil
              Sorry, I don`t know how to show the errors during startup :-(

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

                @Volkae where does npm start output

                if using pm2 tge

                pm2 logs --lines=xxx

                xxx is the number of most recent lines
                default 15

                probably 100 good start
                note the output comes in 2 parts

                error and output

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                V 1 Reply Last reply Reply Quote 0
                • V Offline
                  Volkae @sdetweil
                  last edited by

                  @sdetweil
                  Not using pm2
                  using cronjob to start MM

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

                    @Volkae i forgot to mention that the full calendar url
                    is shown
                    i have deleted the other message

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    V 1 Reply Last reply Reply Quote 0
                    • V Offline
                      Volkae @sdetweil
                      last edited by

                      @sdetweil
                      Upps,
                      thank you!!!

                      1 Reply Last reply Reply Quote 0
                      • P Offline
                        p1lspeda @KristjanESPERANTO
                        last edited by

                        @KristjanESPERANTO
                        I’ve upgraded to the latest MM Version

                        pi@magicmirror:~/MagicMirror $ grep version package.json
                                "version": "2.31.0-develop",
                        
                        [2025-05-07 09:57:22.742] [INFO]  System information:
                        ### SYSTEM:   manufacturer: ; model: ; virtual: false
                        ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.12.20+rpt-rpi-v8
                        ### VERSIONS: electron: 32.2.7; used node: 22.14.0; installed node: 22.14.0; npm: 10.9.2; pm2: 5.4.3
                        ### OTHER:    timeZone: Europe/Berlin; ELECTRON_ENABLE_GPU: undefined
                        
                        

                        And I still get this error

                        [2025-05-07 09:57:19.297] [ERROR] Error when loading MMM-PublicTransportHafas: require() of ES Module /home/pi/MagicMirror/modules/MMM-PublicTransportHafas/core/DepartureFetcher.mjs not supported.
                        Instead change the require of /home/pi/MagicMirror/modules/MMM-PublicTransportHafas/core/DepartureFetcher.mjs to a dynamic import() which is available in all CommonJS modules.
                        

                        My module version:

                        pi@magicmirror:~/MagicMirror/modules/MMM-PublicTransportHafas $ grep version package.json
                          "version": "3.1.11",
                        pi@magicmirror:~/MagicMirror/modules/MMM-PublicTransportHafas $ git pull
                        Already up to date.
                        

                        I do not know what else I can do or what I have missed

                        mumblebajM karsten13K 2 Replies Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 4
                        • 5
                        • 4 / 5
                        • 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