appsmith icon indicating copy to clipboard operation
appsmith copied to clipboard

ChunkLoadError: Loading chunk 13 failed.

Open sentry-io[bot] opened this issue 2 years ago • 3 comments

Sentry Issue: APPSMITH-4FQ

ChunkLoadError: Loading chunk 13 failed.
(error: https://app.appsmith.com/app/cryptocurrency-price-tracker/page1-6274edab5984be5f5784ba8d/fusioncharts.excelexport.js)
  at (error:  (/app/cryptocurrency-price-tracker/page1-6274edab5984be5f5784ba8d/fusioncharts.excelexport.js))
  at call (widgets/ChartWidget/component/index.tsx:485:30)
...
(22 additional frame(s) were not displayed)

sentry-io[bot] avatar Sep 21 '22 11:09 sentry-io[bot]

Steps to reproduce:

  1. Drag a chart widget on canvas.
  2. Select custom chart in property pane.
  3. Add custom fusion chart with : "exportEnabled": "1", `{ "type": "column2d",

"dataSource": { "data": [ { "label": "Product1", "value": 20000 }, { "label": "Product2", "value": 22000 }, { "label": "Product3", "value": 32000 } ], "chart": { "exportEnabled": "1", "caption": "Sales Report", "xAxisName": "Product Line", "yAxisName": "Revenue($)", "theme": "fusion", "alignCaptionWithCanvas": 1, "captionFontSize": "24", "captionAlignment": "center", "captionPadding": "20", "captionFontColor": "#231F20", "legendIconSides": "4", "legendIconBgAlpha": "100", "legendIconAlpha": "100", "legendPosition": "top", "canvasPadding": "0", "chartLeftMargin": "20", "chartTopMargin": "10", "chartRightMargin": "40", "chartBottomMargin": "10", "xAxisNameFontSize": "14", "labelFontSize": "12", "labelFontColor": "#716E6E", "xAxisNameFontColor": "#716E6E", "yAxisNameFontSize": "14", "yAxisValueFontSize": "12", "yAxisValueFontColor": "#716E6E", "yAxisNameFontColor": "#716E6E" } } }` 4. Check fusioncharts.excelexport.js is not loaded. The url is https://app.appsmith.com/app/cryptocurrency-price-tracker/page1-6274edab5984be5f5784ba8d/fusioncharts.excelexport.js is wrong it would be of fusion chart coz of that chunk is not loaded. Screenshot 2022-09-21 at 5 44 09 PM

Smartlook recording: This issue is crashing user apps, & he deleted his apps post crash

rohitagarwal88 avatar Sep 21 '22 12:09 rohitagarwal88

Thanks for the detailed analysis Rohit. If this is really crashing the use app, we should decide on the next steps faster

@dilippitchika this seems like a new functionality that fusion chart offers & we need to handle. Do we go that way, or think in a different direction?

cc @keyurparalkar

somangshu avatar Sep 21 '22 12:09 somangshu

@somangshu the code rohit shared is working perfectly fine for me, it doesn't crash my apps. Can you check once?

dilippitchika avatar Sep 21 '22 13:09 dilippitchika

same here @dilippitchika

@rohitagarwal88 can you please share the app?

somangshu avatar Sep 26 '22 10:09 somangshu

Fusion chart on appsmith without export as XLSX option Screenshot 2022-09-28 at 10 41 03 AM Fusion chart on its website with export as XLSX option Screenshot 2022-09-28 at 10 43 00 AM

@somangshu/ @dilippitchika : Somehow, not breaking app for me & I cannot find the smartlook recording where the app was crashing.

Anyways, we have to fix the chunk loading issue, so that the user gets the Export as XLSX option when "exportEnabled": "1",

rohitagarwal88 avatar Sep 28 '22 05:09 rohitagarwal88

@dilippitchika in your app can you see the xlsx option? Also please check the console for the above error if possible.

somangshu avatar Sep 28 '22 07:09 somangshu

@somangshu can you check sentry if there are still these errors?

dilippitchika avatar Feb 16 '23 06:02 dilippitchika

The issue is not found on sentry, May have gotten overridden by man event limit. We will have to wait and watch. Based on the above reproducible steps, is this bug still noticed?

somangshu avatar Feb 16 '23 06:02 somangshu

No, it's not. I am closing it for the time being. Will see if we run into it again

dilippitchika avatar Feb 16 '23 06:02 dilippitchika