I am using react-particles.js npm package on Next.js project. It is working well on developer mode but it's not working on production mode.
The code is below
import type { NextPage } from 'next'
const Home: NextPage = () => {
return (
<div>
<Head>
<title>Particle Demo</title>
</Head>
<Particles />
</div>
)
}
There is no error on console both developer and production mode.
use ts-particles
npm package instead.
It should works fine