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

    ssr+electron combination

    Help
    2
    3
    271
    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.
    • F
      fprijatelj last edited by

      Is it possible to use ssr + electron together.
      I have created src-express at the same level as src-electron
      then I import src-express/index.js from src-electron/electron-main.js (which starts express) and it works.
      But if I import src-ssr/index.js from src-electron/electron-main.js there is an error
      Can’t resolve ‘quasar-ssr’ from src-ssr/index.js

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @fprijatelj last edited by dobbel

        @fprijatelj why would you want ssr on electron apps? Just curious because it makes little sense to me , because its’ a desktop app…

        1 Reply Last reply Reply Quote 0
        • F
          fprijatelj last edited by

          I’m developing application which need’s very little changes between desktop and classical server based program. In Electron communication between “backend” and “frontend” is achieved with ipcMain and ipcRenderer. The same can be done with standard REST appi or graphQl over localhost:PORT. Also if you are porting standard node.js base app to Electron , it works from the start. There is no problem with express running in Electron app. I’am just using it. I just have some additional work with express routing. And if you want to port standard Electron app
          to NW.js or standard node+express app it takes quite a time.

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