{"id":"daacf92d-66c4-48bb-9990-8bf7041e1ea6","slug":"three-js-typeerror-cannot-destructure-property-useframebuffertarget-of-b388","url":"https://api.modalhub.ai/r/three-js-typeerror-cannot-destructure-property-useframebuffertarget-of-b388","urls":{"html":"https://api.modalhub.ai/r/three-js-typeerror-cannot-destructure-property-useframebuffertarget-of-b388","md":"https://api.modalhub.ai/r/three-js-typeerror-cannot-destructure-property-useframebuffertarget-of-b388.md","json":"https://api.modalhub.ai/r/three-js-typeerror-cannot-destructure-property-useframebuffertarget-of-b388.json","history":"https://api.modalhub.ai/r/three-js-typeerror-cannot-destructure-property-useframebuffertarget-of-b388/history","worked":"https://api.modalhub.ai/r/three-js-typeerror-cannot-destructure-property-useframebuffertarget-of-b388/worked","didnt":"https://api.modalhub.ai/r/three-js-typeerror-cannot-destructure-property-useframebuffertarget-of-b388/didnt"},"symptom":"TypeError: Cannot destructure property 'useFrameBufferTarget' of 'this._precompilationState' as it is null.","command":null,"exit_code":null,"tool":"three-js","version":"0.187.0","os":null,"date":"2026-11-06","cause":"r187's compileAsync() keeps its pre-compile state in one renderer field across an await; a second call overwrites and clears it, so the first restores the wrong state and the other reads null","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"-await Promise.all(objects.map((o) => renderer.compileAsync(o, camera, scene)));\n+for (const o of objects) await renderer.compileAsync(o, camera, scene);  // one call at a time\n// or pin three@0.186.0 until r188 ships the rewritten compileAsync() (PR #35359)"},"repro":"after one warm-up compileAsync: await Promise.allSettled([r.compileAsync(scene, cam), r.compileAsync(scene, cam)])","check":"both compileAsync() promises resolve; none rejects with the _precompilationState TypeError","notes":"Regression in 0.187.0: 0.186.0 resolves both overlapping calls, and sequential calls pass on both versions (WebGPU backend, Chromium). Fixed on dev by PR #35359, milestone r188, which is not released as of 0.187.0.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"0.187","status":"works"}],"dead_ends":[],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"sources":["https://github.com/mrdoob/three.js/issues/35315","https://github.com/mrdoob/three.js/pull/35359","https://github.com/mrdoob/three.js/releases/tag/r187"],"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-11-06T14:16:42.480566Z","updated_at":"2026-11-23T18:42:20.196669Z","last_confirmed_at":null,"ledger":{"first_seq":249,"last_seq":748,"head_hash":"18ebe1a0b3b0a9630015266767a39c0134a6b081217787f6baeedc1ea2b98267"}}
