Uncaught TypeError: (intermediate value).setDataType is not a function

Dears,
could you plz check the screenshot attached, i have this error, Uncaught TypeError: (intermediate value).setDataType is not a function and i don’t know how to solve this issue

How do you import THREE.RGBELoader?

What version of three.js are you using?

Also consider to demonstrate the issue with a live example. Screenshots are in most cases not sufficient for debugging.

I have imported it in the index.html as CDN link, as the attached

1 Like

RGBELoader.setDataType() exists since r107. You can’t use the method with r87.

Try it with setType() instead. Or consider to upgrade the engine.

Thank you very much, it’s work fine now I have upgrade it to the this version three@0.120.0

1 Like