Neues Frontend: FhemNative Updates

Begonnen von Syrex-o, 16 Juli 2019, 14:50:24

Vorheriges Thema - Nächstes Thema

MadMax

Zitat von: Syrex-o am 02 April 2025, 18:22:32
Zitat von: MadMax am 30 März 2025, 12:20:31Hallo Syrex-o,

ich wollte einen neuen Button anlegen welcher zwei Icons hat und kein label, leider bekomme ich dann diese Fehler hier.


 >  NX   Successfully ran target build for project fhem-native-desktop (146ms)

   Nx read the output from the cache instead of running the command for 1 out of 1 tasks.


> sync
> npx cap sync @capacitor-community/electron

[warn] The bundledWebRuntime configuration option has been deprecated. Can be safely deleted.
[error] Platform @capacitor-community/electron not found.
[error] Platform @capacitor-community/electron not found.

> build:electron
> cd ./electron && npm run electron:make


> fhemnative-desktop@4.3.7 electron:make
> npm run build && electron-builder build -c ./electron-builder.config.json


> fhemnative-desktop@4.3.7 build
> tsc && electron-rebuild

src/index.ts:1:46 - error TS2307: Cannot find module '@capacitor-community/electron' or its corresponding type declarations.

1 import type { CapacitorElectronConfig } from '@capacitor-community/electron';
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/index.ts:2:70 - error TS2307: Cannot find module '@capacitor-community/electron' or its corresponding type declarations.

2 import { getCapacitorElectronConfig, setupElectronDeepLinking } from '@capacitor-community/electron';
                                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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:48 - error TS2307: Cannot find module 'electron' or its corresponding type declarations.

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

src/index.ts:5:27 - error TS2307: Cannot find module 'electron-is-dev' or its corresponding type declarations.

5 import electronIsDev from 'electron-is-dev';
                            ~~~~~~~~~~~~~~~~~

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:1:46 - error TS2307: Cannot find module '@capacitor-community/electron' or its corresponding type declarations.

1 import type { CapacitorElectronConfig } from '@capacitor-community/electron';
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

6 } from '@capacitor-community/electron';
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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:10:27 - error TS2307: Cannot find module 'electron-is-dev' or its corresponding type declarations.

10 import electronIsDev from 'electron-is-dev';
                             ~~~~~~~~~~~~~~~~~

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';
                                 ~~~~~~~~~~~~~~~~~~~~~~~


Found 15 errors in 3 files.

Errors  Files
     7  src/index.ts:1
     1  src/rt/electron-rt.ts:2
     7  src/setup.ts:1

gruß
Max

Hey,

Projekt ist nicht eingestellt, im Moment nur auf Pause da wenig Zeit  :-\
Navigiere dich mal nach "apps/fhem-native-desktop" und installiere die Pakete. Desktop ist immer etwas fummelig. Warum entwickelst du nicht in der Weboberfläche?

VG

Wie geht das über die Weboberfläche?
Bin deiner Anleitung gefolgt.
Lenovo M910Q Tiny Debian 12, FHEM 6.3, 2x Siemens Logo 0BA7, Homematic CCU3, Philips HUE, 6x SMA Wechselrichter, BYD HVM, BYD HVS, SMA EVCharger, KEBA Wallbox, 2x HMS800W, Daikin Wärmepumpe über CAN, viele ESPs

Contrib: https://svn.fhem.de/trac/browser/trunk/fhem/contrib/MadMax