Mixed Theming Approaches Copy
In v33 the default approach to theming AG Grid has been updated to use the Theming API. This error occurs when a theme is set via the theme
property but the legacy CSS files have not been removed.
For a comprehensive guide on migrating from v32 please see Migrating to the Theming API.
There are two ways to resolve this error, either complete the steps required to fully adopt the Theming API or alternatively continue with the legacy themes.
Adopt the new Theming API Copy
To adopt the new Theming API please complete the steps outlined in Adopt the Theming API.
Continue with legacy Themes Copy
Set the grid option: theme='legacy'
. See Continue with Legacy Themes for more information.
If you have multiple grids you may find using a Global Grid Option to be a convenient way to set the theme to "legacy"
for all grids in your application.
import { provideGlobalGridOptions } from 'ag-grid-community';
// Mark all grids as using legacy themes
provideGlobalGridOptions({ theme: "legacy" });