Encountering issues while adding files from the react-admin example demo, facing some errors:
'Cannot use namespace 'FilterProps' as a type.'
Snippet of code:
https://github.com/marmelab/react-admin/blob/master/examples/demo/src/orders/OrderList.tsx
const OrderFilter: FC<Omit<FilterProps, 'children'>> = (props) => (
<Filter {...props}>
<SearchInput source='q' alwaysOn />
<ReferenceInput source='user_id' reference='users'>
<AutocompleteInput
optionText={(choice: Customer) =>
choice.first_name && choice.last_name
? `${choice.first_name} ${choice.last_name}`
: ''
}
/>
</ReferenceInput>
<DateInput source='date_gte' />
<DateInput source='date_lte' />
<TextInput source='total_gte' />
<NullableBooleanInput source='returned' />
</Filter>
);
Encountering same issue with Identifier and ListProps.
Furthermore, while importing FilterProps, Identifier, ListProps, getting messages like "is declared but its value is never read"
Already using .tsx for customizing the layout AppBar without any errors. The code was directly copied from github.
What could be causing these errors?
Thank you & Regards