Error building desktop app

H all, I wanted to test out developing a desktop app for a potential project. All I did was choose the Desktop template to create the project and then change it to use Electron. As soon as I change it I got an error in the terminal and it wont build / run.

Any ideas how to resolve this?

Have you checked to make sure the folder listed as missing in the error above is actually there..?

Strangely when I restarted Wappler the error went away.

I then got an error because Typescript was not installed, so installed that globally.

Now I have the following error when I build:

"error TS2307: Cannot find module 'electron' or its corresponding type declarations"

I can see the electron npm package in the electron folder.