'pmremGenerator' is not exported from 'three/build/three.module.js'

Hi - I just npm installed newest THREE.js and now wanted to use pmremGenerator.
I imported

import * as THREE from ‘three/build/three.module.js’;

and then tried to after RGBELoader loaded:
const envMap = pmremGenerator.fromEquirectangular( texture ).texture;

But I get this error message when trying to compile:
Attempted import error: ‘pmremGenerator’ is not exported from ‘three/build/three.module.js’ (imported as ‘THREE’).

Any idea what I´m doing wrong?

Try this:

const pmremGenerator = new THREE.PMREMGenerator( renderer );
pmremGenerator.compileEquirectangularShader();

// in your onLoad() calback

const envMap = pmremGenerator.fromEquirectangular( texture ).texture;

Awesome @Mugen87 - worked like a charme!

Many many thanks!