You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
I am having a problem with implementing this into my nextjs website (GameLord2011/My-Wesite) and in the particles component the code particlesLoaded={particlesLoaded} returns a ts(2322) error The message is: Type '(container?: Container) => void' is not assignable to type '(container?: Container | undefined) => Promise'.
Type 'void' is not assignable to type 'Promise'.ts(2322)
IParticlesProps.d.ts(9, 5): The expected type comes from property 'particlesLoaded' which is declared here on type 'IntrinsicAttributes & IParticlesProps'
(property) IParticlesProps.particlesLoaded?: ((container?: Container) => Promise) | undefined
I am having a problem with implementing this into my nextjs website (GameLord2011/My-Wesite) and in the particles component the code particlesLoaded={particlesLoaded} returns a ts(2322) error The message is: Type '(container?: Container) => void' is not assignable to type '(container?: Container | undefined) => Promise'. Type 'void' is not assignable to type 'Promise'.ts(2322) IParticlesProps.d.ts(9, 5): The expected type comes from property 'particlesLoaded' which is declared here on type 'IntrinsicAttributes & IParticlesProps' (property) IParticlesProps.particlesLoaded?: ((container?: Container) => Promise) | undefined
Can you help?
the particlesLoaded needs a Promise in return, or an async function, same thing.
I was following the how to do this from the readme, and particlesLoaded is a constant.
Oh the README is not updated, it is a constant, but it's a function. Instead of const particlesLoaded = (container), try const particlesLoaded = async (container)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
I am having a problem with implementing this into my nextjs website (GameLord2011/My-Wesite) and in the particles component the code
particlesLoaded={particlesLoaded}returns a ts(2322) error The message is: Type '(container?: Container) => void' is not assignable to type '(container?: Container | undefined) => Promise'.Type 'void' is not assignable to type 'Promise'.ts(2322)
IParticlesProps.d.ts(9, 5): The expected type comes from property 'particlesLoaded' which is declared here on type 'IntrinsicAttributes & IParticlesProps'
(property) IParticlesProps.particlesLoaded?: ((container?: Container) => Promise) | undefined
Can you help?
All reactions