Joepocalyptic / nuxt-particles

Run lightweight, heavily customizable particle simulations in your Nuxt project with tsParticles.
https://nuxt-particles.joeypereira.dev
MIT License
29 stars 3 forks source link

Error after Upgrade #24

Closed danielhill1982 closed 1 month ago

danielhill1982 commented 1 month ago

After upgrading all to newest version, in development mode, the particles destroy my site.

Can anyone help me with this issue? I don't want to miss the very nice particle effect...

):

error example:

The tsparticles-engine module or its type declarations were not found.

npm WARN deprecated tsparticles-plugin-easing-quad@2.12.0: starting from tsparticles v3 the packages are now moved to @tsparticles/package-name instead of tsparticles-package-name

danielhill1982 commented 1 month ago

delting of background solved it!

background: { color: { value: '#0A0F0F' } },

Joepocalyptic commented 1 month ago

It looks like the error you were getting was related to importing packages from tsparticles v2; this module now uses tsparticles v3. I'd double check your deps/imports to ensure you're getting packages from under the @tsparticles scope.

danielhill1982 commented 1 month ago

Yes I see.

import type { Container } from '@tsparticles/engine';

danielhill1982 commented 1 month ago

Deleting of background: { color: { value: '#0A0F0F' } },is also required to ensure successful view on my website.

Joepocalyptic commented 1 month ago

What's happening when you set the color?

danielhill1982 commented 1 month ago

I had to figure it out to run it updated. What I now notice is that the animation is in the foreground of images, but it should actually be in the background like the rest of my website.