ruvnet/ruflo · error · Error
Failed to initialize GnnBridge: ${error instanceof Error ? e
Error message
Failed to initialize GnnBridge: ${error instanceof Error ? error.message : String(error)} What it means
GnnBridge.initialize() hit an unexpected exception while dynamically importing the GNN WASM module (beyond the tolerated import-miss, which falls back to a mock). The status is set to 'error' and the original failure text is embedded so the loader problem is visible.
Source
Thrown at v3/plugins/hyperbolic-reasoning/src/bridges/gnn-bridge.ts:177
if (this._status === 'ready') return;
if (this._status === 'loading') return;
this._status = 'loading';
try {
// Dynamic import - module may not be installed
const wasmModule = await import(/* webpackIgnore: true */ '@ruvector/gnn-wasm' as string).catch(() => null);
if (wasmModule) {
this._module = wasmModule as unknown as GnnWasmModule;
} else {
this._module = this.createMockModule();
}
this._status = 'ready';
} catch (error) {
this._status = 'error';
throw new Error(`Failed to initialize GnnBridge: ${error instanceof Error ? error.message : String(error)}`);
}
}
/**
* Dispose of resources
*/
async dispose(): Promise<void> {
this._module = null;
this._status = 'unloaded';
}
/**
* Forward pass through GNN
*/
forward(graph: Graph, config: Partial<GnnConfig> = {}): GnnResult {
if (!this._module) {
throw new Error('GnnBridge not initialized');
}View on GitHub (pinned to fa13ee4ad6)
Solutions
- Check the underlying initialization error; verify the WASM asset exists, is compatible, and required dependencies are loaded.
- Retry initialization after fixing the root cause; make the failure surface the original error message.
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at v3/plugins/hyperbolic-reasoning/src/bridges/gnn-bridge.ts:177 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ruvnet/ruflo@fa13ee4ad6 (2026-08-18).
Data as JSON: /api/errors/0626400c612cf660.
Report an issue: GitHub.