question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Cannot read property 'AllData' of undefined" - Did not change code or references

See original GitHub issue

Originally 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:open
  • Created 3 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
CompuIvescommented, Jun 22, 2020

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

1reaction
CompuIvescommented, Jul 9, 2020

It seems this introduced a new issue.

That error seems to be related to a circular dependency, there are two versions of vega-dataflow, one that vega 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 with npm as well.

Updating vega fixes it, because newer versions don’t pin the dependencies to one specific version anymore.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found