Question: a javascript error has occurred in the main process discord?
Answer: Discord or its settings may have gone corrupt – In this scenario, it's the Discord installation to blame so either reset its settings or reinstall the app. ... Discord runs with administrator permissions – Running Discord with administrator permissions is known to cause this problem so make sure you remove this option.