react-fusioncharts-component
react-fusioncharts-component copied to clipboard
Getting Error : Uncaught (in promise) ChunkLoadError: Loading chunk 13 failed.
Getting Error : Uncaught (in promise) ChunkLoadError: Loading chunk 13 failed. --> while loading of fusioncharts. graphs & charts are rendered very well but it's throwing error in console. please help me out with this error.
Uncaught (in promise) ChunkLoadError: Loading chunk 13 failed.
(missing: http://localhost:3000/fusioncharts.excelexport.js)
at a.e (fusioncharts.js:13:1)
at Function.
Thanks.
please check if you import this way:
import React from "react";
import FusionCharts from "fusioncharts";
import Charts from "fusioncharts/fusioncharts.charts";
import ReactFC from "react-fusioncharts";
import ExcelExport from "fusioncharts/fusioncharts.excelexport";
import FusionTheme from 'fusioncharts/themes/fusioncharts.theme.fusion';
ReactFC.fcRoot(FusionCharts, Charts, ExcelExport,FusionTheme);
before I import like this, which is throwing same error as you shown above.
import React from "react";
import FusionCharts from "fusioncharts";
import charts from "fusioncharts/fusioncharts.charts";
import ReactFusioncharts from "react-fusioncharts";
// Resolves charts dependancy
charts(FusionCharts);