Giter Club home page Giter Club logo

Comments (8)

matteobruni avatar matteobruni commented on May 24, 2024

particlesInit is not part of window type, you need to declare a new property there like this: https://stackoverflow.com/questions/12709074/how-do-you-explicitly-set-a-new-property-on-window-in-typescript

about the other error, what tsparticles packages are you using and which version? astro-particles doesn't work with tsparticles v3 yet.

from astro.

Bartyspace avatar Bartyspace commented on May 24, 2024

I solved the first problem, So how can i use tsParticles in Astro? With React?

from astro.

matteobruni avatar matteobruni commented on May 24, 2024

I solved the first problem, So how can i use tsParticles in Astro? With React?

Use version 2, if you don’t need v3 features it’s fine.

from astro.

Bartyspace avatar Bartyspace commented on May 24, 2024

I uninstall all modules and installed astro-particles. Now i don´t know how to install tsparticles v2.

from astro.

matteobruni avatar matteobruni commented on May 24, 2024

I uninstall all modules and installed astro-particles. Now i don´t know how to install tsparticles v2.

npm install tsparticles@2

from astro.

Bartyspace avatar Bartyspace commented on May 24, 2024

I tried everything. Now i have astro-particles and tsparticles@2. Another problem showed up.
Snímek obrazovky 2024-03-15 193908

from astro.

Bartyspace avatar Bartyspace commented on May 24, 2024

I solved it. Solution was tsParticles. But my console showed error.
Snímek obrazovky 2024-03-15 194744

from astro.

Bartyspace avatar Bartyspace commented on May 24, 2024

I solved. Ty for your help. I am so happy after four days of trying. 😆
Snímek obrazovky 2024-03-15 200738

from astro.

Related Issues (9)

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.