Sign in

Windows 10 : A Javascript Error occurred in the main process

  • This topic has 3 replies, 2 voices, and was last updated 3 weeks ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6537
    iceberg53

    Version : 0.38.3

    I tried to launch Publii today as usual, but I kept getting an error with the following message :

    A javascript error occured in the main process.

    Uncaught exception:

    Syntax error : Unexpected token

    I googled it and found a few blog posts and youtube videos about a similar bug on the discord desktop app for Windows 10.

    Unfortunately, I didn’t get much success with those solutions.

    Here are a few links to those articles :

    I’m stuck right and I’d be really glad to get some help.

    Thanks.

    Attachments:
    #6539
    Tomasz Dziuda

    Hi,

    It seems that one of the JSON config files is corrupted.

    Please try the following:

    1) Rename Publii/config directory to Publii/__config – if Publii will start then we will need to check your app config files

    2) If above point won’t help – please rename Publii/sites catalog to Publii/__sites and create new empty Publii/sites catalog. If Publii will start properly, then problem is connected with one of your sites configuration.

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

    #6547
    iceberg53

    Thank you, Tomasz.

    Your solution worked perfectly.

    I checked the config directory of the last site I modified when Publii was still working.

    The sites.config.json file was completely corrupted.

    I just had to replace it with the same file from my last backup to make Publii work again.

    Thank you very much.

     

    #6548
    Tomasz Dziuda

    Great to hear 🙂

    --
    Do you appreciate the support you've received today? If so, consider donating to the Publii team by clicking here; we'll be sure to use your donation to make Publii even better!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Windows 10 : A Javascript Error occurred in the main process’ is closed to new replies.