THREE.CubemapGenerator is not a constructor

I’m using typerscript and Three v 0.99
image

In my packgake.json
image
And way import
image

I must using this :frowning:

If you want to convert an equirectangular panorama into a cubemap texture, use THREE.CubemapGenerator from the examples. It’s not necessary to use a external project for this. However, you have to convert the file into a module so you can import it in your project. THREE.CubemapGenerator is no part of the core.

1 Like

Yeb, I only had this problems when writing modules