You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/x-charts-pro/src/internals/plugins/useChartProExport/exportImage.ts
+3-10Lines changed: 3 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -5,16 +5,9 @@ import { ChartImageExportOptions } from './useChartProExport.types';
5
5
import{defaultOnBeforeExport}from'./defaults';
6
6
7
7
exportconstgetDrawDocument=async()=>{
8
-
try{
9
-
constmodule=awaitimport('rasterizehtml');
10
-
11
-
return(module.default||module).drawDocument;
12
-
}catch(error){
13
-
thrownewError(
14
-
`MUI X Charts: Failed to import 'rasterizehtml' module. This dependency is mandatory when exporting a chart as an image. Make sure you have it installed as a dependency.`,
15
-
{cause: error},
16
-
);
17
-
}
8
+
// Use the local TypeScript implementation instead of external dependency
0 commit comments