- BACKUP, ALWAYS
- Go to the terminal and run:
npx cap update electron
- After that:
npx cap sync electron
- Under the electron folder on terminal, run:
npm install
- Take the advice of @George and add
"skipLibCheck":true
ontsconfig.json
I have made a test recently and all errors dissapears