W
Wasp6mo ago
fred-123

Did anybody manage to get particles.js to work as a background by any chance?

I have been trying the entire day yesterday to make particles.js work but never got there. What i tried was installing https://github.com/VincentGarreau/particles.js Creating a component with it and then importing it inside the landing page. Does anybody have an idea why this might not work with wasp or am I just doing it wrong?
GitHub
GitHub - VincentGarreau/particles.js: A lightweight JavaScript libr...
A lightweight JavaScript library for creating particles - VincentGarreau/particles.js
3 Replies
kapa.ai
kapa.ai6mo ago
Hi @fred-123. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. The knowledge sources provided do not contain specific information about integrating particles.js with Wasp. However, Wasp does support the use of custom npm packages as mentioned in this Github issue (https://github.com/wasp-lang/wasp/issues/11). You might want to ensure that you have correctly installed the particles.js package and are importing it correctly in your component. If you're still having trouble, it could be helpful to provide more information about the error messages you're encountering or the specific steps you're taking. For more detailed guidance, you might find it helpful to refer to the Wasp documentation (https://wasp-lang.dev/docs) or to ask for help in the Wasp community. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @fred-123, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
miho6mo ago
Please share the steps you took i.e. the commands you ran and the code you wrote with us so we can understand better what you tried so far.
fred-123
fred-123OP6mo ago
Unfortunatley, discord doesn't let me type it all out here. Tried tsparticles after failing with particles.js and have set it up exactly like this guy: https://www.youtube.com/watch?v=F20SxgG5MlM I always end up getting a white screen and when checking with developer tools it shows You need to enable JavaScript to run this app. in the body section.
Want results from more Discord servers?
Add your server