I got the error :
Property 'default' is missing in type 'Element' but required in type '{ default: ComponentType; }'.ts(2322)
{React.lazy(() => import(`../../i18n/locales/${this.props.lang}`).then(o => (
<CustomSelects
options={o.option}
formattedMessageId="createroom_genre"
value={this.props.genre}
handleValueChange={this.handleGenreChange}
/>
))) }
I read Using React.lazy with TypeScript but, I don't know how to do this in my case.
Let me know if you need more info. Thanks.