tengbao/vanta

toplogy effect not working when used in react js

Opened this issue · 1 comments

topology animation effect has issues loading after the first reload and componentDidMount in react.. for some reason only the green background shows and not the animation the console throws some error along the lines of uncaught type error : can not read properties of undefined ''some number" and refers to the toplopgy min file

@kamran1381
I encountered a similar problem when using React and "vanta" library version "^0.5.24". In some effects, including the topology effect, only the background was rendered, while the rest of the elements were rendered correctly. To solve this problem for the topology effect, I had to plug in the p5.js library from CDN.
Thus, <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.1.9/p5.min.js"></script>