tsparticles / tsparticles

tsParticles - Easily create highly customizable JavaScript particles effects, confetti explosions and fireworks animations and use them as animated backgrounds for your website. Ready to use components available for React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Solid, Riot and Web Components.
https://particles.js.org
MIT License
7.23k stars 803 forks source link

[Bug]: Class extends value undefined is not a constructor or null #5305

Closed humanusdeus closed 3 months ago

humanusdeus commented 4 months ago

Contact Details

No response

What happened?

I cant get tsParticles to work on any environment, I was building a project just using vite and typescript when I started getting this error "Class extends value undefined is not a constructor or null", after hours of debugging with the bundler I decided to switch to Astro for an easier implementation but I get the same output. Im not running any extra code, I create a new astro project and copy paste the example. It doesnt work with neither Bun or Node.

tsParticles Version

3.2.1

tsParticles Configuration

const options: ISourceOptions = {
    background: {
        color: "#000"
    },
    fullscreen: {
        zIndex: -1
    },
    particles: {
        number: {
            value: 100
        },
        move: {
            enable: true
        }
    }
}

What browsers are you seeing the problem on?

No response

Relevant log output

Uncaught (in promise) TypeError: Class extends value undefined is not a constructor or null
    at

Code of Conduct

matteobruni commented 4 months ago

Already known issue, discussed here: https://github.com/tsparticles/vue3/issues/57#issue-2116764096