GetPublii / Publii

The most intuitive Static Site CMS designed for SEO-optimized and privacy-focused websites.
https://getpublii.com
GNU General Public License v3.0
6.25k stars 416 forks source link

[Bug]: A JavaScript error occurred in the main process #1600

Open nahalstead opened 2 months ago

nahalstead commented 2 months ago

Operating system

Windows 10 Home - Version 22H2

Publii version

0.45.2

Post editor

WYSIWYG editor

Bug description

Every time I try to sync I receive the following error: publii-error-1

The dialogue appears then I click "OK" and it appears again. And then I receive the following error:

publii-error-2

I've tried uninstalling and reinstalling Publii. I've updated npm to the latest version. Still get the error 99% of the time I click "Sync your website".

Note: this is only occurring on this computer running Windows 10. I have Publii installed on another machine running Windows 11 and I have no problems syncing any websites.

Error log files are empty. (Always have been for me and I don't know why.)

Steps to reproduce

Install Publii 0.45.2 Setup server to run on Netlify Click "Sync your website"

Relevant log output

No response

nahalstead commented 1 month ago

Since installing Version: 0.46.0 (build 16908) on my Windows 11 machine the same error is now occurring on there as well.

Any updates / insights on this? @bobmitro @dziudek

I also forgot to mention in my original post that I'm using Dropbox for my Publii Sites folder, but I've not had any problems with this for the many years I've been using Publii.

dziudek commented 1 month ago

@nahalstead - I have added two changes which can potentially remove the JS error - it will be available in v.0.461. planned for tomorrow