mode) that is not recognized by the type in your TypeScript configuration.mode property is correctly defined in the type you are using. Here’s how you can address this:App.tsx file:4. **Run the Development Server**:
After making the necessary changes, navigate to your project folder and run the development server:ThemeConfig``
By extending the type to include the import { ConfigProviderProps } from 'antd';
interface CustomThemeConfig extends ConfigProviderProps {
mode?: 'dark' | 'light';
}
const themeConfig: CustomThemeConfig = {
mode: 'dark',
// other properties
};