0
我從故宮安裝三個包,並試圖打電話three.js所:進口THREE.Lut()
lut = new THREE.Lut(colorMap, numberOfColors);
我越來越"export 'Lut' (imported as 'THREE') was not found in 'three'
。
Lut.js
文件可以在\node_modules\three\examples\js\math
找到,但它不包含export
聲明和需要three.js
本身。
我試過import 'three/examples/js/math/Lut';
和其他約定,但都沒有工作。
'從「three''進口三是不工作,並且第一建議也將失敗。它看起來像'Lut.js'從裏面調用'THREE'對象。 – galah92
@ galah92看起來不像three.js允許你在這個時候導入示例,這裏有很多你可以看看的建議/解決方法:https://github.com/mrdoob/three.js/issues/9562,但它看起來不會很快實施。 – Purgatory