After installing three packages from npm, I attempted to invoke:
lut = new THREE.Lut( colorMap, numberOfColors );
However, I encountered the error message:
"export 'Lut' (imported as 'THREE') was not found in 'three'
.
Although the Lut.js
file is located in
\node_modules\three\examples\js\math
, it does not include any export
statements and requires three.js
itself.
I experimented with various methods like
import 'three/examples/js/math/Lut';
, but unfortunately none of them resolved the issue.