Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type declarations missing #14

Open
mauriciabad opened this issue Jan 15, 2024 · 0 comments
Open

Type declarations missing #14

mauriciabad opened this issue Jan 15, 2024 · 0 comments

Comments

@mauriciabad
Copy link

mauriciabad commented Jan 15, 2024

The package doesn't include any types. (notice the missing TS icon on npm)

Screenshot 2024-01-15 at 4 07 43 AM

I'm getting this error.

Import declaration conflicts with local declaration of 'Particles'.ts(2440)

And the "How to use" example code throws many TypeScript errors.

Import declaration conflicts with local declaration of 'Particles'.ts(2440)

'tsParticles' is declared but its value is never read.ts(6133)

Cannot find module 'tsparticles' or its corresponding type declarations.ts(2307)

Property 'particlesInit' does not exist on type 'Window & typeof globalThis'.ts(2339)

Property 'particlesLoaded' does not exist on type 'Window & typeof globalThis'.ts(2339)

'container' is declared but its value is never read.ts(6133)

And when the code runs, It throws an error and doesn't load the particles.

tsParticles - Error in animation loop TypeError: Cannot read properties of undefined (reading 'circleRange')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant