Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toplogy effect not working when used in react js #176

Open
kamran1381 opened this issue Oct 15, 2023 · 1 comment
Open

toplogy effect not working when used in react js #176

kamran1381 opened this issue Oct 15, 2023 · 1 comment

Comments

@kamran1381
Copy link

kamran1381 commented Oct 15, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants