Comments (7)
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
)
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.
Ahhh okay, got it, sorry about that! Yep 3.5.3 works now!
from react-particles-js.
After explicitly installing the tsparticles dependency:
from react-particles-js.
Upgrade react-particles-js to version 3.5.2 (released just now).
from react-particles-js.
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
from react-particles-js.
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.
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)
- Can't perform a React state update on an unmounted component. HOT 1
- Polygon Mask
- installation error dependecy conflict HOT 4
- [Bug] TypeError: Cannot read property 'circle' of undefined in Next.JS HOT 11
- Cannot find module HOT 8
- Benefits compared to tsparticles official react lib HOT 4
- Polygon not drawing image from svg. HOT 1
- Bug: Polygon doesn't draw from svg containing text
- Canvas stretches particles until resize HOT 2
- Cannot find module HOT 4
- Packages outdated for React v17 HOT 1
- ModuleNotFoundError 'tsparticles/Plugins/PolygonMask/Enums' HOT 3
- Start point of particles HOT 1
- Cannot read property 'resize' of undefined in tsparticles HOT 1
- Polygon nb_sides doesn't take effect HOT 1
- react-particles-js crashed after introduce typescript HOT 5
- Particles Disappear When Page Is Refreshed HOT 6
- Why was this deprecated? HOT 2
- Cannot close the `View-code` modal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-particles-js.