[Bug]: Red squiggle for <Set>
with array of wrappers
#9313
Labels
bug/needs-info
More information is needed for reproduction
<Set>
with array of wrappers
#9313
What's not working?
yarn create redwood-app -y ~/tmp/rw-app
yarn rw g page home /
Routes.tsx
Routes
component in yourRoutes.tsx
file to look like this:Scrolling to the end of that error message shown in step 7 above I get this:
And also see this:
So, when having an array of wrappers TS for some reason includes
wrap
in the list of props it expects on the wrapper components themselves. Plus thechildren
type is wrong (Element
instead ofReactNode
)The fix is to omit
wrap
andchildren
from the props type we require all wrappers to matchAre you interested in working on this?
The text was updated successfully, but these errors were encountered: