When I try to use Chakra-UI directly in server side component, I get the following error.
It's currently unsupported to use "export *" in a client boundary
Fix
I made Chakra.tsx to export Chakra-UI components to workaround this issuer. Inside the Chakra.tsx, it looks like
'use client' export { Spinner } from '@chakra-ui/react'
Issue
When I try to use Chakra-UI directly in server side component, I get the following error.
Fix
I made
Chakra.tsx
to export Chakra-UI components to workaround this issuer. Inside theChakra.tsx
, it looks like'use client' export { Spinner } from '@chakra-ui/react'