You are using an older version of AG Grid. To upgrade, please see the migration guide.
Full Error Text
SparklinesModule must be initialised with an AG Charts module. One of 'AgChartsCommunityModule' / 'AgChartsEnterpriseModule'.
import { AgChartsEnterpriseModule } from 'ag-charts-enterprise';
import { ModuleRegistry } from 'ag-grid-community';
import { SparklinesModule } from 'ag-grid-enterprise';
ModuleRegistry.registerModules([SparklinesModule.with(AgChartsEnterpriseModule)]);
To show this error text in the dev console, import the ValidationModule.