Home Forums Chart Support React – error on unmount

React – error on unmount

Viewing 8 posts - 1 through 8 (of 8 total)
  • #22562

    Any thoughts – I get this anytime I try to navigate to a new page after the page with the CanvasJS component has rendered…

    bundle.main.js:68124 Uncaught ReferenceError: i is not defined
        at q.destroy (bundle.main.js:68124)
        at CanvasJSChart.componentWillUnmount (bundle.main.js:37541)
        at bundle.main.js:45189
        at measureLifeCyclePerf (bundle.main.js:44856)
        at ReactCompositeComponentWrapper.unmountComponent (bundle.main.js:45188)
        at Object.unmountComponent (bundle.main.js:8533)
        at ReactCompositeComponentWrapper.unmountComponent (bundle.main.js:45198)
        at Object.unmountComponent (bundle.main.js:8533)
        at ReactCompositeComponentWrapper.unmountComponent (bundle.main.js:45198)
        at Object.unmountComponent (bundle.main.js:8533)
    #22565

    @fliptscript,

    Can you kindly share a sample project over google-drive or one-drive reproducing the issue you are facing, so that we can look into your code, understand the scenario better and help you out?

    __
    Priyanka M S
    Team CanvasJS

    #24038

    I have this problem too, is there any solution?

    #24041

    Hi all, I have found the solution to this problem! There’s a tiny error on line 140 of canvas.min.js

    You need to change this

    
    for(i=0;i<a.length;i++)
    

    to this

    
    for(var i=0;i<a.length;i++)
    
    #24056

    @lolaona12,

    Thanks for the solution. We will fix this issue in our next release.

    ___________
    Indranil Deo,
    Team CanvasJS

    #24063

    @indranil is this fixed in the 2.2?

    #24067

    @lumaluis,

    It’s not fixed in v2.2 but will be fixed in the next release.

    ___________
    Indranil Deo,
    Team CanvasJS

    #24147

    @fliptscript, @lolaona12, @lumaluis,

    We have released v2.3 with the above modification. Please refer to the release blog for more information. Do download the latest version from our download page and let us know your feedback.

    ___________
    Indranil Deo,
    Team CanvasJS

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.