Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error : Uncaught (in promise) ChunkLoadError: Loading chunk 13 failed. #80

Open
Nsingh0007 opened this issue Aug 23, 2022 · 1 comment

Comments

@Nsingh0007
Copy link

Nsingh0007 commented Aug 23, 2022

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. (fusioncharts.js:13:1)
at i (fusioncharts.js:13:1)
at o (fusioncharts.js:13:1)
at d (fusioncharts.js:13:1)
at t.fireEvent (fusioncharts.js:13:1)
at t.preConfigure (fusioncharts.js:13:1)
at r.preConfigure (fusioncharts.js:14:1)
at t.preConfigure (fusioncharts.js:299:1)
at t.configure (fusioncharts.js:13:1)

Thanks.
@Nsingh0007 Nsingh0007 changed the title Getting Error while loading of fusioncharts. Getting Error : Uncaught (in promise) ChunkLoadError: Loading chunk 13 failed. Aug 23, 2022
@thekingofbandit
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants