me2002

Problem with project built with react js

Recommended Posts

Hello.

When the project runs locally, all the charts work properly but when I build the project and run it on the hosts, I get errors on the pages that use this charts.

Error messages : 

1 - net::ERR_CONTENT_DECODING_FAILED 200

2 - ChunkLoadError: Loading chunk 6 failed.

I'm using React js.

Share this post


Link to post
Share on other sites

I get chart data from the api, most of them are line chart

import FusionCharts from "fusioncharts";
import Charts from "fusioncharts/fusioncharts.charts";
import FusionTheme from "fusioncharts/themes/fusioncharts.theme.candy";
import ReactFC from "react-fusioncharts";
ReactFC.fcRoot(FusionCharts, Charts, FusionTheme);
"fusioncharts""^3.17.0",
"react-fusioncharts""^3.1.2",

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now