Git Product home page Git Product logo

Comments (7)

wufe avatar wufe commented on June 21, 2024 2

I got it running:

  • I added tsparticles via npm install --save tsparticles (it's a peer-dependency)
  • Changed the body background to black

If it doesn't work for you, ensure tsparticles in your package-lock.json is always 1.30.0 or above (I just deleted the package-lock.json, the node_modules folder, and did a npm install)

Screenshot 2021-06-29 at 08 26 03

EDIT:
The blank page was because the default particles color is white, and the body background is white too.. So the particles do not appear

from react-particles-js.

bharathcs avatar bharathcs commented on June 21, 2024 1

Ahhh okay, got it, sorry about that! Yep 3.5.3 works now!

from react-particles-js.

bharathcs avatar bharathcs commented on June 21, 2024

Original error:
image

After explicitly installing the tsparticles dependency:
image

from react-particles-js.

wufe avatar wufe commented on June 21, 2024

Upgrade react-particles-js to version 3.5.2 (released just now).

from react-particles-js.

bharathcs avatar bharathcs commented on June 21, 2024

Hi Wufe, thanks for the really quick response, but unfortunately its still not working for me after updating:
https://github.com/bharathcs/minimum-test-reactparticles/tree/react-particles-js-3-5-2

Now I get a blank page:
image

from react-particles-js.

wufe avatar wufe commented on June 21, 2024

My bad, I've not updated the peer dependency. For now you can manually add tsparticles with npm install -D tsparticles.

Edit:
I updated the peer dependency in the new version 3.5.3

from react-particles-js.

bharathcs avatar bharathcs commented on June 21, 2024

Hmm I'm not sure why but it still doesn't work for me
(v 3.5.3: https://github.com/bharathcs/minimum-test-reactparticles/tree/react-particles-js-3-5-2 )

from react-particles-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.