"Cannot read property 'AllData' of undefined" - Did not change code or references
See original GitHub issueOriginally mentioned in: https://github.com/microsoft/SandDance/issues/155#issuecomment-589845026_
Codesandbox: https://codesandbox.io/s/sanddance-js-demo-wwyv1
As per the above; these codesandboxe hasn’t changed at all, no code changes, no reference changes, but now they are getting an error from the Sanddance react package:
Cannot read property `AllData` of undefined
Has something changed in version 2.0.0 of the package that causes it to break?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Redux global solution for Cannot read property of undefined ...
Say I do fetch all data from the server once the app starts up "index.js entry point". Based on the assumption that all...
Read more >Disabling cannot read property of undefined - GeeksforGeeks
In this article, we will try to understand the ways in which we may receive errors using the read property of undefined, and...
Read more >Google Visualization API Reference | Charts
If you change values in a DataTable after it is passed into a visualization's draw() method, the changes will not immediately change the...
Read more >Cannot read property 'fields' of undefined
record is a method, not a property. Given your current code, you could just: get accountName() { return this.sAcctName; }.
Read more >Uncaught TypeError: Cannot read property 'column' of undefined
It will be in the nightly version shortly - as you are referencing the nightly directly hopefully you shouldn't need to do anything...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey! Sorry for the late reply, I believe this issue has now been fixed. It was related to how we converted es modules - they were not mutable and this caused this bug. I’ve forked the sandbox and updated
vega
, and everything seems to be working as expected now!https://codesandbox.io/s/sanddance-js-demo-jp42p?file=/src/index.js
That error seems to be related to a circular dependency, there are two versions of
vega-dataflow
, one thatvega
needs (which is pinned) and another one that is required by another dependency. It doesn’t work well because some globals are set on that dependency, but there are two versions. I was able to repro it withnpm
as well.Updating
vega
fixes it, because newer versions don’t pin the dependencies to one specific version anymore.