Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

JavaScript error occurred in the main process (on launch)

  • #11262
    Avatar photo[anonymous]

    On launching the Publii application I am now (after a few years of successful operation) getting the following error:

    Uncaught exception:

    Error: UNKNOWN: unknown error, read

    at Object.readSync (node:fs:749:3)

    at tryReadSync (node:fs:449:20)

    etc..

    referring to app.asar/back-end/app.js:166:55

    This is latest Windows build running on Windows 10.

    https://drive.google.com/file/d/1PWzn4PmTi5HxM6NPHOMeOxYH0u1YhL7e/view?usp=sharing

    Thanks for looking.

    #11292
    Avatar photo[anonymous]

    Hi,

    There can be few reasons of this issue:

    • corrupted file (in this case config.json in the used theme)
    • wrong file permissions
    • availability of the files – maybe you are now using these files from cloud (like One Drive/Dropbox) resource?
    #11293
    Avatar photo[anonymous]

    Thanks for this. It might have been lack of availability of files as I freed up space on my local drive by offloading to OneDrive. I brought them back to the local drive so I could back them up before reinstall the software. Working now. Thanks for the response.