0beqz / screen-space-reflections

Implements Screen Space Reflections in three.js
https://screen-space-reflections.vercel.app/
MIT License
550 stars 44 forks source link

Unable to load module #9

Closed federicovezzoli closed 2 years ago

federicovezzoli commented 2 years ago

With three in the latest version (0.142.0) if I try to use @react-three/postprocessing I get an error:

Error: Cannot find module '/xxx/node_modules/three/examples/jsm/capabilities/WebGL'

Which I could track back to this package, it seems that your require statement isn't valid anymore.

Is there a way to fix this? thanks

0beqz commented 2 years ago

Yeah this effect needs that "WebGL.js" module from three.js' examples folder to check if WebGL2 is available. I just inlined that function to check for WebGL2 now and removed the import of the "WebGL.js". Could you test if the issue is resolved in the newest version (2.0.4)?

federicovezzoli commented 2 years ago

Thanks, I've submitted the problem at @react-three/postprocessing, so they can update the dependency