2

I installed react-three-fiber and I am trying to apply postprocessin, but I get this error

No matching export in "node_modules/three/build/three.module.js" for import "WebGLMultisampleRenderTarget"

here is an example:

  <EffectComposer disableNormalPass>
    <Bloom luminanceThreshold={1} mipmapBlur />
  </EffectComposer>
  <Environment background preset="sunset" blur={0.8} />

I did investigation but nothing helped.

1 Answer 1

2

Had the same problem, managed to fix this by downgrading @react-three/drei to 9.32.4 and three to 0.145.0

I'm also using the following:

"@react-three/drei": "^9.32.4",
"@react-three/fiber": "^8.8.7",
"@react-three/postprocessing": "^2.7.0",
"@types/three": "^0.149.0",
"postprocessing": "6.29.3",

Hope that helps.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. It works with theatrejs and r3f.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.