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
I get this error when using chakra-ui
I have aliased react to preact/compat as suggested in the docs, but i get this error now. node_modules/@chakra-ui/descendant/src/use-descendant.ts:2:10 - error TS2724: '"react"' has no exported member named 'RefCallback'. Did you mean 'useCallback'?
I can only assume that react exports the RefCallback type, but preact/compat does not
It is worth noting that this has only become a problem as i have been trying to switch to Vite + preact + ts from the preactCLI version.
I am hoping that i am just configuring something wrong.
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
-
I get this error when using chakra-ui
I have aliased react to preact/compat as suggested in the docs, but i get this error now.
node_modules/@chakra-ui/descendant/src/use-descendant.ts:2:10 - error TS2724: '"react"' has no exported member named 'RefCallback'. Did you mean 'useCallback'?
I can only assume that react exports the
RefCallback
type, but preact/compat does notIt is worth noting that this has only become a problem as i have been trying to switch to Vite + preact + ts from the preactCLI version.
I am hoping that i am just configuring something wrong.
Beta Was this translation helpful? Give feedback.
All reactions