tengbao / vanta

Animated 3D backgrounds for your website
http://vantajs.com/
MIT License
5.53k stars 1.03k forks source link

toplogy effect not working when used in react js #176

Open kamran1381 opened 1 year ago

kamran1381 commented 1 year ago

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

SheeetFace commented 1 year ago

@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,