Console error after upgrading to spread v15

Posted by: adisa.craig on 13 April 2022, 3:51 pm EST

    • Post Options:
    • Link

    Posted 13 April 2022, 3:51 pm EST

    Hi I am getting the following console error since we’ve updgraded the spreadjs library from v14.2.5 → v 15.0.4.

    I have added the additional @grapecity/spread-sheets-shapes library as well to try to resolve the issue, but still getting the below error

    
    Uncaught TypeError: Cannot read properties of undefined (reading 'BaseFormControl')
        at Object../dist/plugins/pivot/pivot-filter-diagram/slicer/pivotSlicerFormControl.js (batch.js?gatekeeper-ui-v2=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:30638:22676)
        at c (batch.js?gatekeeper-ui-v2=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:30636:296)
        at Object../dist/plugins/pivot/pivot-filter-diagram/slicer/pivot-slicer.js (batch.js?gatekeeper-ui-v2=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:30637:26218)
        at c (batch.js?gatekeeper-ui-v2=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:30636:296)
        at Object../dist/plugins/pivot/pivot-table-entry.js (batch.js?gatekeeper-ui-v2=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:30640:14863)
        at c (batch.js?gatekeeper-ui-v2=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:30636:296)
        at Object../dist/plugins/pivot/pivot-all-entry.js (batch.js?gatekeeper-ui-v2=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:30636:1332)
        at c (batch.js?gatekeeper-ui-v2=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:30636:296)
        at a.Spread.Pivot../dist/plugins/pivot/pivot-all-entry.js (batch.js?gatekeeper-ui-v2=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:30636:1107)
        at batch.js?gatekeeper-ui-v2=true&healthcheck-resources=true&highlightactions=true&hostenabled=true&locale=en-US&user-logged-in=true:30636:1156
    
    
  • Posted 14 April 2022, 4:49 am EST

    Hi,

    This is Because of the pivot table slicer support in v15, the slicer request the shape model. importing the shapes module before pivottable should resolve this issue. Please refer to the following references and if the issue persists please share a working sample that replicates the issue so that we could investigate it further and help you accordingly.

    
    <link href="http://cdn.grapecity.com/spreadjs/hosted/css/gc.spread.sheets.excel2013white.15.0.0.css"
    rel="stylesheet" type="text/css" />
    <script src="http://cdn.grapecity.com/spreadjs/hosted/scripts/gc.spread.sheets.all.15.0.0.min.js"></script>
    <script src="https://cdn.grapecity.com/spreadjs/hosted/scripts/plugins/gc.spread.sheets.shapes.15.0.0.min.js"></script>
    <script
    src="http://cdn.grapecity.com/spreadjs/hosted/scripts/plugins/gc.spread.pivot.pivottables.15.0.0.min.js"></script>
    <script src="https://www.grapecity.com/spreadjs/demos/spread/source/data/pivot-data.js"
    type="text/javascript"></script>
    
    

    Regards,

    Avinash

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels