No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Electron-edge-js not working in Quasar Electron project.

    Help
    2
    11
    325
    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.
    • Z
      Zackery747 last edited by

      Hello everyone.

      I am trying to use electron-edge-js to reference a C# .dll in my quasar electron project. But for some reason, it doesn’t work.

      electron-edge-js.png

      I tried electron-edge-js with a standard electron project and it worked great.

      I would be very grateful for any recommendation regarding this issue.
      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • metalsadman
        metalsadman last edited by metalsadman

        How did you use it in your project? Anyway take alook at boot files for using libs, notenyou cant use require here https://quasar.dev/quasar-cli/cli-documentation/boot-files#Introduction

        Z 2 Replies Last reply Reply Quote 0
        • Z
          Zackery747 @metalsadman last edited by

          @metalsadman thanks for the reply. I did use require like this.

          var edge = require(‘electron-edge-js’)
          var getCurrentTime = edge.func({
          assemblyFile: baseDll,
          typeName: localTypeName,
          methodName: ‘GetCurrentTime’
          })

          thanks for the link. I will go and check out boot files.

          1 Reply Last reply Reply Quote 0
          • Z
            Zackery747 @metalsadman last edited by Zackery747

            @metalsadman I now added an electron-edge-js boot file like this.

            import Vue from ‘vue’
            import edge from ‘electron-edge-js’
            Vue.prototype.$edge = edge

            and replaced my required with the prototype $edge.. But now when I run my project it gives me the same error at startup. So that means the boot file did work but the node module is still an issue.

            Capture2.PNG

            1 Reply Last reply Reply Quote 0
            • metalsadman
              metalsadman last edited by

              Maybe the node js integration warning gives you the hint, did youbset it to true?

              Z 1 Reply Last reply Reply Quote 0
              • Z
                Zackery747 @metalsadman last edited by Zackery747

                @metalsadman No, I didn’t set it to true.

                1 Reply Last reply Reply Quote 0
                • metalsadman
                  metalsadman last edited by

                  Set it to true, but do take note of the warnings.

                  Z 1 Reply Last reply Reply Quote 0
                  • Z
                    Zackery747 @metalsadman last edited by Zackery747

                    @metalsadman sorry for the late reply. So I did set the integration to true but it still gives me the same error. 😞

                    electron-integration.PNG

                    1 Reply Last reply Reply Quote 0
                    • metalsadman
                      metalsadman last edited by metalsadman

                      Im not familiar with that lib sorry, try rebuilding your electron mode, else seek that library’s doc why its giving those errors. It’s a 3rd party lib which is out of quasar scope :/.

                      Z 1 Reply Last reply Reply Quote 0
                      • Z
                        Zackery747 last edited by

                        No, it’s cool! I will try a clean rebuild and see what happens else it is back to googling. Because the doc doesn’t say anything about this error :(.
                        Anycase thanks for the help. It was very much appreciated. 🙂

                        1 Reply Last reply Reply Quote 0
                        • Z
                          Zackery747 @metalsadman last edited by

                          @metalsadman Maybe this is the main problem why edge is not working?

                          "From my experience you cannot webpack edge or edge-js because it contains binary files that are being looked up by path. Perhaps someone has solution for it. You should set edge-js as external and then copy node_modules/edge-js to your working directory"

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