{"record":{"id":"bec5298679013883","repo":"ruvnet/ruflo","slug":"failed-to-load-wasm-module-modulename","errorCode":null,"errorMessage":"Failed to load WASM module: ${moduleName}","messagePattern":"Failed to load WASM module: (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"v3/plugins/gastown-bridge/src/wasm/loader.ts","lineNumber":172,"sourceCode":"                  new DecompressionStream('gzip')\n                );\n                return new Response(decompressed).arrayBuffer();\n              }\n            }\n            // Fallback: assume server decompresses or use pako\n            throw new Error('Gzip decompression not supported');\n          }\n\n          return buffer;\n        }\n      }\n    } catch {\n      // Try next path\n      continue;\n    }\n  }\n\n  throw new Error(`Failed to load WASM module: ${moduleName}`);\n}\n\n/**\n * Instantiate a WASM module\n */\nasync function instantiateWasm<T>(\n  bytes: ArrayBuffer,\n  imports: WebAssembly.Imports = {}\n): Promise<WasmModule<T>> {\n  const module = await WebAssembly.compile(bytes);\n  const instance = await WebAssembly.instantiate(module, imports);\n\n  return {\n    instance: instance.exports as T,\n    memory: instance.exports.memory as WebAssembly.Memory,\n    ready: true,\n  };\n}","sourceCodeStart":154,"sourceCodeEnd":190,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/gastown-bridge/src/wasm/loader.ts#L154-L190","documentation":"The WASM loader exhausted every candidate path for the named module without a successful load (all fetches/readFile attempts failed or were caught). The final fallback error names the module; check that the WASM artifact is installed/bundled and reachable on the configured paths.","triggerScenarios":"Thrown at v3/plugins/gastown-bridge/src/wasm/loader.ts:172 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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."],"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-14T05:17:10.506Z"}