Mixed Theming Approaches Copy
In v33 the default approach to theming AG Grid has been updated to use the Theming API. The error above is the result of a clash between the new default theme, as no explicit theme
grid option has been provided, and the old approach of including the CSS file directly in the application.
For a comprehensive guide on migrating from v32 please see Migrating to the Theming API.
There are two ways to resolve this error, either adopt the new Theming API or continue with the legacy themes.
Adopt the new Theming API Copy
To adopt the new Theming API follow 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" });