Taking Ultimate React Part 1, Course 39 Building for Production. Please note I decided to do the project with the latest version of Chakra (Chakra 3.2.3 for me) vs 2.x as used in the lesson.
As the course instructs, I ran npm run build
, which returned a bunch of errors across Chakra UI; for me, some of the more prominent ones are in PlatformSelector.tsx and menu.tsx.
The errors mostly seem to be around a children element; I’m not sure what that means Below is an example and some screenshots of the two files mentioned above:
Type ‘{ children: Element; ref: ForwardedRef; }’ is not assignable to type ‘IntrinsicAttributes & MenuContentProps & RefAttributes’.
Property ‘children’ does not exist on type ‘IntrinsicAttributes & MenuContentProps & RefAttributes.’