You must be logged in to post your query.
Home › Forums › Chart Support › React – error on unmount
Tagged: React
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)
@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
I have this problem too, is there any solution?
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++)
@lolaona12,
Thanks for the solution. We will fix this issue in our next release.
___________ Indranil Deo, Team CanvasJS
@indranil is this fixed in the 2.2?
@lumaluis,
It’s not fixed in v2.2 but will be fixed in the next release.
@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.
You must be logged in to reply to this topic. Login/Register