{"record":{"id":"99715d7a9cb328da","repo":"ruvnet/ruflo","slug":"unsupported-environment-for-wasm-loading","errorCode":null,"errorMessage":"Unsupported environment for WASM loading","messagePattern":"Unsupported environment for WASM loading","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/prime-radiant/src/wasm-bridge.ts","lineNumber":163,"sourceCode":"      this.loadTime = performance.now() - startTime;\n    }\n  }\n\n  /**\n   * Load WASM module from path\n   *\n   * Supports Node.js, browser, and web worker environments.\n   */\n  async loadWasm(wasmPath?: string): Promise<void> {\n    const path = wasmPath ?? this.config.wasmPath ?? DEFAULT_WASM_PATH;\n\n    try {\n      if (isNode) {\n        await this.loadWasmNode(path);\n      } else if (isBrowser || isWebWorker) {\n        await this.loadWasmBrowser(path);\n      } else {\n        throw new Error('Unsupported environment for WASM loading');\n      }\n    } catch (error) {\n      if (this.config.enableLogging) {\n        console.warn(`[Prime Radiant] Failed to load WASM from ${path}:`, error);\n      }\n      throw error;\n    }\n  }\n\n  /**\n   * Load WASM in Node.js environment\n   */\n  private async loadWasmNode(wasmPath: string): Promise<void> {\n    try {\n      // Try dynamic import of the WASM package\n      // Specifier behind a string var so tsc doesn't statically resolve this\n      // optionalDependency at build time (TS2307 when it isn't installed).\n      const pkg: string = 'prime-radiant-advanced-wasm';","sourceCodeStart":145,"sourceCodeEnd":181,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/prime-radiant/src/wasm-bridge.ts#L145-L181","documentation":"WasmBridge.loadWasm() detected a runtime that is neither Node.js, browser, nor web worker, so it has no loading strategy for the WASM binary. There is nothing to fall back to, so the load fails; run in a supported environment.","triggerScenarios":"Thrown at v3/plugins/prime-radiant/src/wasm-bridge.ts:163 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Load the WASM module in a supported environment (Node or browser with fetch/fs), or provide a platform-specific loader."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}