Copy RenderTarget result to texture

I need to safe multiple frames to an array of textures and I’m getting a threejs error that I’m not sure.

        const rt_texture = this._render_target.texture;
        const result = new Texture();
        this._renderer.copyTextureToTexture(new Vector2(0, 0), rt_texture, result);

Then I get this error:

WebGL2RenderingContext.texSubImage2D: Argument 7 is not valid for any of the 7-argument overloads.
    three vendors-node_modules_pnpm_three_0_155_0_node_modules_three_build_three_module_js.js:1489

What I’m doing wrong?

https://threejs.org/docs/#api/en/renderers/WebGLRenderer.copyTextureToTexture

I think you have the wrong parameter orders.

The parameters are okey, I was in 155, and even updating to 166 this doesn’t work. I’m trying to use copyFramebufferToTexture but I’m facing problems with the texture size.

Following this example? three.js examples