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

    Built Electron app shows nothing: "Not allowed to load local resource"

    Help
    3
    4
    814
    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.
    • bonniss
      bonniss last edited by

      I have played around with Quasar Electron by creating a brand new app and building it without any modification by electron-packager. Though opening .exe built file showed nothing. I saw an error in the console: Not allowed to load local resource: ...\resources\app.asar/index.html.
      I use Quasar@1.7.2. The target platform is win32.
      Does anyone get the same?

      1 Reply Last reply Reply Quote 1
      • U
        uzunu last edited by

        I got the same error on mac, also cordova and capacitor loads the app but when i navigate to some routes such as /about I got a 404 error saying /about/app.js wasn’t found

        1 Reply Last reply Reply Quote 0
        • M
          mo5005 last edited by

          @bonniss did you find a solution to it? I’ve got the same problem

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

            Haven’t seen this for a while as I chose pure Electron for my project. Just make a fresh test and it seems that the issue was solved.

            My package.json

            "dependencies": {
                "@quasar/extras": "^1.0.0",
                "core-js": "^3.6.5",
                "quasar": "^1.0.0"
              },
              "devDependencies": {
                "@quasar/app": "^2.0.0",
                "babel-eslint": "^10.0.1",
                "devtron": "^1.4.0",
                "electron": "^9.0.0",
                "electron-debug": "^3.0.1",
                "electron-devtools-installer": "^3.0.0",
                "electron-packager": "^14.1.1",
                "eslint": "^6.8.0",
                "eslint-config-standard": "^14.1.0",
                "eslint-loader": "^3.0.3",
                "eslint-plugin-import": "^2.14.0",
                "eslint-plugin-node": "^11.0.0",
                "eslint-plugin-promise": "^4.0.1",
                "eslint-plugin-standard": "^4.0.0",
                "eslint-plugin-vue": "^6.1.2"
              }
            
            1 Reply Last reply Reply Quote 0
            • First post
              Last post