XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Build from source Error

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    12 Posts 4 Posters 657 Views 1 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.
    • DanpD Online
      Danp Pro Support Team
      last edited by

      Could be related to this recent commit -- https://github.com/vatesfr/xen-orchestra/commit/68bb2fa7f012625bcbb273f1526aa62defd2df12

      0 julien-f committed to vatesfr/xen-orchestra
      feat(xo-collection): named instead of default exports
      
      Behave better with Babel and native ESM.
      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Ah yes, and so last question: on which commit HEAD are you right now?

        M 1 Reply Last reply Reply Quote 0
        • DanpD Online
          Danp Pro Support Team
          last edited by

          FWIW, I get the same issue when building from latest sources (68bb2fa7f012625bcbb273f1526aa62defd2df12)

          1 Reply Last reply Reply Quote 0
          • M Offline
            michimate @olivierlambert
            last edited by

            @olivierlambert

            i used the latest master

            git clone -b master http://github.com/vatesfr/xen-orchestra
            

            I also tried again with the guide from your doku. Same result.

            root@xoa-ce:/home/server-admin/xen-orchestra/packages/xo-server# yarn start
            yarn run v1.22.10
            $ node bin/xo-server
            /home/server-admin/xen-orchestra/packages/xo-server/bin/xo-server:30
            require('@xen-orchestra/log/configure').catchGlobalErrors(require('@xen-orchestra/log').default('xo:xo-server'))
                                                                                                           ^
            
            TypeError: require(...).default is not a function
                at Object.<anonymous> (/home/server-admin/xen-orchestra/packages/xo-server/bin/xo-server:30:96)
                at Module._compile (internal/modules/cjs/loader.js:1068:30)
                at Object.Module._extensions..js (internal/modules/cjs/loader.js:1097:10)
                at Module.load (internal/modules/cjs/loader.js:933:32)
                at Function.Module._load (internal/modules/cjs/loader.js:774:14)
                at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
                at internal/main/run_main_module.js:17:47
            error Command failed with exit code 1.
            info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
            
            1 Reply Last reply Reply Quote 0
            • olivierlambertO Offline
              olivierlambert Vates 🪐 Co-Founder CEO
              last edited by

              Thanks 🙂 What about your Node version? node -v

              M 1 Reply Last reply Reply Quote 0
              • M Offline
                michimate @olivierlambert
                last edited by

                @olivierlambert

                v14.17.0

                1 Reply Last reply Reply Quote 0
                • olivierlambertO Offline
                  olivierlambert Vates 🪐 Co-Founder CEO
                  last edited by

                  @julien-f does it ring any bell?

                  julien-fJ 1 Reply Last reply Reply Quote 0
                  • julien-fJ Offline
                    julien-f Vates 🪐 Co-Founder XO Team @olivierlambert
                    last edited by

                    https://github.com/vatesfr/xen-orchestra/issues/5782

                    gallart created this issue in vatesfr/xen-orchestra

                    closed loader.js - Cannot find module #5782

                    M 1 Reply Last reply Reply Quote 1
                    • M Offline
                      michimate @julien-f
                      last edited by

                      @julien-f

                      Thanks's a lot. Now it worked!

                      1 Reply Last reply Reply Quote 1
                      • olivierlambertO Offline
                        olivierlambert Vates 🪐 Co-Founder CEO
                        last edited by

                        Thanks for the report!

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post