From 2a854aea5b87c8508acf9ae3064de7771f107c53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20Da=C3=9Fler?= Date: Thu, 18 Sep 2025 23:51:51 +0200 Subject: [PATCH] Fix logger reference error in Libp2pComponent Add missing LoggerComponent import that was causing ReferenceError when trying to use logger in start() method --- implementations/Libp2pComponent.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/implementations/Libp2pComponent.ts b/implementations/Libp2pComponent.ts index 6a5fe63..9808506 100644 --- a/implementations/Libp2pComponent.ts +++ b/implementations/Libp2pComponent.ts @@ -4,6 +4,7 @@ import { NativeEventEmitter, NativeModules } from 'react-native'; import AsyncStorage from '@react-native-async-storage/async-storage'; +import { LoggerComponent } from 'ior:gitea:gitea.metatrom.net:universal-components/logger@1.0.0'; import { LIBP2P_CONFIG } from '../utils/constants'; import type { ConnectionStatusEvent, PeerDiscoveredEvent, PeerInfoEvent } from '../utils/types'; import type { @@ -16,6 +17,9 @@ import type { PeerInfo, } from '../interfaces/ILibp2pComponent'; +// Create logger instance for this module +const logger = new LoggerComponent('Libp2pComponent'); + // Helper class to create PeerId-like objects from strings export class SimplePeerId implements PeerId { constructor(private id: string) {}