Mobile App - Electron build (poss bug but may be my setup)

I am trying to build a test Mobile App to Electron (Wappler v5.1.3)

I have run the Wappler System Check and Electron Update from the project but when I try to build it to Electron using Wappler I get the following:

Building your project for electron ...

> helloworld@1.0.0 build
> tsc && electron-rebuild

src/index.ts:3:49 - error TS2307: Cannot find module 'electron' or its corresponding type declarations.

3 import type { MenuItemConstructorOptions } from 'electron';
                                                  ~~~~~~~~~~

src/index.ts:4:31 - error TS2307: Cannot find module 'electron' or its corresponding type declarations.

4 import { app, MenuItem } from 'electron';
                                ~~~~~~~~~~

src/index.ts:6:23 - error TS2307: Cannot find module 'electron-unhandled' or its corresponding type declarations.

6 import unhandled from 'electron-unhandled';
                        ~~~~~~~~~~~~~~~~~~~~

src/index.ts:7:29 - error TS2307: Cannot find module 'electron-updater' or its corresponding type declarations.

7 import { autoUpdater } from 'electron-updater';
                              ~~~~~~~~~~~~~~~~~~

src/rt/electron-rt.ts:2:44 - error TS2307: Cannot find module 'electron' or its corresponding type declarations.

2 import { ipcRenderer, contextBridge } from 'electron';
                                             ~~~~~~~~~~

src/setup.ts:7:22 - error TS2307: Cannot find module 'chokidar' or its corresponding type declarations.

7 import chokidar from 'chokidar';
                       ~~~~~~~~~~

src/setup.ts:8:49 - error TS2307: Cannot find module 'electron' or its corresponding type declarations.

8 import type { MenuItemConstructorOptions } from 'electron';
                                                  ~~~~~~~~~~

src/setup.ts:9:80 - error TS2307: Cannot find module 'electron' or its corresponding type declarations.

9 import { app, BrowserWindow, Menu, MenuItem, nativeImage, Tray, session } from 'electron';
                                                                                 ~~~~~~~~~~

src/setup.ts:11:27 - error TS2307: Cannot find module 'electron-serve' or its corresponding type declarations.

11 import electronServe from 'electron-serve';
                             ~~~~~~~~~~~~~~~~

src/setup.ts:12:31 - error TS2307: Cannot find module 'electron-window-state' or its corresponding type declarations.

12 import windowStateKeeper from 'electron-window-state';
                                 ~~~~~~~~~~~~~~~~~~~~~~~

../node_modules/@capacitor-community/electron/dist/core/ElectronSplashScreen.d.ts:1:27 - error TS2307: Cannot find module 'electron' or its corresponding type declarations.

1 import type Electron from 'electron';
                            ~~~~~~~~~~


Found 11 errors in 4 files.

Errors  Files
     4  src/index.ts:3
     1  src/rt/electron-rt.ts:2
     5  src/setup.ts:7
     1  ../node_modules/@capacitor-community/electron/dist/core/ElectronSplashScreen.d.ts:1

What can I do to resolve it?

Community Page
Last updated: