FarazzShaikh / THREE-CustomShaderMaterial

🧩 Extend Three.js standard materials with your own shaders!
https://farazzshaikh.github.io/THREE-CustomShaderMaterial/
MIT License
890 stars 56 forks source link

"Multiple instances of Three.js being imported" issue #27

Closed dannyWoodford closed 2 years ago

dannyWoodford commented 2 years ago

Hey I'm using your package in a project I'm working on, great library btw, and I get this warning.

Screen Shot 2022-09-27 at 4 07 28 PM

I don't know too much about package creation but I think all you have to do to fix it is not export your node_modules along with the npm, I think. At least when I remove the node_modules and reinstall the warning goes away.

Screen Shot 2022-09-27 at 5 37 24 PM
FarazzShaikh commented 2 years ago

Thanks! What version are you using? This should’ve been fixed long ago

dannyWoodford commented 2 years ago
"three-custom-shader-material": "^2.4.3"

its dependency requires points to `"three": "^0.136.0"`
but I'm using `^0.137.5` in my project

Thanks!
FarazzShaikh commented 2 years ago

Please use the latest version - 4.0.0 and see if that fixes it. I cannot guarantee the integrity of outdated versions