DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Agik Setiawan
Agik Setiawan

Posted on

typescript expression produces a union type that is too complex to represent in NextJS, React

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.

Top comments (0)

🌚 Life is too short to browse without dark mode