copyTextureToTexture missing in module

typescript

#1

When importing three.js via module I dont seem to be able to use WebGLRenderer.copyTextureToTexture.
It is giving the following error: “error TS2339: Property ‘copyTextureToTexture’ does not exist on type ‘WebGLRenderer’.” I am using version 91. Is it really missing or am I doing something wrong?


#2

Can you please show how you use the method?

BTW: It’s not static. You call it like this:


#3

Thanks for your response. I know the method is not static and I did follow this example. I realized now that the method is actually working even though I get the compilation error (and also Visual Studio Code complains that it is not recognized). So maybe it is a problem with @types/three? This is my first time using typescript, so I don’t know if it is related.


#4

Ah, you are using typescript? Yes, this is not the first issue where user complains about missing definitions in @types/three. The problem is that this project is not maintained by the core developers of three.js. I suggest you raise an issue here:


#5

Thank you for the clarification.