Particles not working
I try given example in Particles but it not give any output.
Can somebody provide me full code?
https://github.com/tsparticles/solid
Also this code also not working - https://github.com/tsparticles/solid/blob/main/apps/solid/src/App.tsx
GitHub
GitHub - tsparticles/solid: Solid.js tsParticles official component
Solid.js tsParticles official component. Contribute to tsparticles/solid development by creating an account on GitHub.
GitHub
solid/apps/solid/src/App.tsx at main · tsparticles/solid
Solid.js tsParticles official component. Contribute to tsparticles/solid development by creating an account on GitHub.
5 Replies
@bigmistqke is it possible to help me for this? I need simple example
mm, not sure what is wrong with the published version. when i git clone the source from https://github.com/tsparticles/solid i can run the example, but when I import
@tsparticles/solid
into the playground, it fails (init()
returns a promise) @agentsmith could you maybe check what's up with that?
i think for now @iNdra just use the source:
https://playground.solidjs.com/anonymous/5d8e168c-4340-4173-92b8-a851c03ef1e5 it's a very tiny wrapper.Yeah I got init is not a function error
When I change code to const init = () => initParticlesEngine(loadFull); then work it
@iNdra The maintainer of that repo hasn't created any release for it yet. He was making some more changes across all the libraries before pushing out to fixes that I applied with @bigmistqke 's help.
I published a version on NPM using my own username as a the scope.
I didn't update the documentation for that specifically so you can't rely on that install information. You need to use
npm i @ralphsmith80/tsparticles-solid
.
https://www.npmjs.com/package/@ralphsmith80/tsparticles-solidnpm
@ralphsmith80/tsparticles-solid
Official tsParticles Solid Component - Easily create highly customizable particle, confetti and fireworks animations and use them as animated backgrounds for your website. Ready to use components available also for React, Vue.js (2.x and 3.x), Angular, Sv. Latest version: 3.0.1-alpha.0, last published: a month ago. Start using @ralphsmith80/tspa...
thanks