I very confusing with error "typescript expression produces a union type that is too complex to represent" in NextJS, React.
After searching, googling i found the solution.
I have got solution from this post
I have "@react-three/drei" and "@react-three/fiber" package in my nextJS application.
Just remove both, and problem is done.