{"record":{"id":"150790964bf103ca","repo":"ruvnet/ruflo","slug":"wasm-file-not-found-resolvedpath","errorCode":null,"errorMessage":"WASM file not found: ${resolvedPath}","messagePattern":"WASM file not found: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/plugins/prime-radiant/src/wasm-bridge.ts","lineNumber":217,"sourceCode":"      const path = await import('path');\n\n      let resolvedPath = wasmPath;\n\n      // Try to resolve path\n      if (!path.default.isAbsolute(wasmPath)) {\n        // Try node_modules\n        const nodeModulesPath = path.default.join(\n          process.cwd(),\n          'node_modules',\n          wasmPath\n        );\n        if (fs.existsSync(nodeModulesPath)) {\n          resolvedPath = nodeModulesPath;\n        }\n      }\n\n      if (!fs.existsSync(resolvedPath)) {\n        throw new Error(`WASM file not found: ${resolvedPath}`);\n      }\n\n      const wasmBuffer = fs.readFileSync(resolvedPath);\n      this.bundleSize = wasmBuffer.length;\n\n      const wasmModule = await WebAssembly.compile(wasmBuffer);\n      const importObject = this.createImportObject();\n      const instance = await WebAssembly.instantiate(wasmModule, importObject as WebAssembly.Imports);\n\n      this.wasmModule = instance.exports as unknown as WasmModule;\n\n      if (this.config.enableLogging) {\n        console.log(`[Prime Radiant] WASM module loaded from ${resolvedPath}`);\n      }\n    }\n  }\n\n  /**","sourceCodeStart":199,"sourceCodeEnd":235,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/plugins/prime-radiant/src/wasm-bridge.ts#L199-L235","documentation":"loadWasmNode() resolved the WASM path (absolute, or via the node_modules fallback) and fs.existsSync found no file there. The resolved path is included; install the WASM package or correct wasmPath so the loader can read the binary.","triggerScenarios":"Thrown at v3/plugins/prime-radiant/src/wasm-bridge.ts:217 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the file path exists; resolve it relative to the module/package root rather than the process cwd.","Ensure the build/bundling step copies the WASM asset to the expected output location."],"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"}