Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Event Flow Viz] When hovering or interacting with chart, everything disappears #6151

Closed
3 tasks
vylc opened this issue Oct 19, 2018 · 12 comments
Closed
3 tasks
Assignees
Labels
!deprecated-label:bug Deprecated label - Use #bug instead inactive Inactive for >= 30 days

Comments

@vylc
Copy link

vylc commented Oct 19, 2018

Errors on JS console:
vendors-addSlice-dashboard-profile-welcome.77167b2494c02e8d12f9.chunk.js:41 Error: Minified React error #188; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=188 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at r (vendors-EventFlow.0f0944afee5e19827565.chunk.js:29)
at m (vendors-EventFlow.0f0944afee5e19827565.chunk.js:29)
at bn (vendors-EventFlow.0f0944afee5e19827565.chunk.js:29)
at Object.findHostInstance (vendors-EventFlow.0f0944afee5e19827565.chunk.js:29)
at vendors-EventFlow.0f0944afee5e19827565.chunk.js:29
at Object.fe [as findDOMNode] (vendors-EventFlow.0f0944afee5e19827565.chunk.js:29)
at n.value (vendors-EventFlow.0f0944afee5e19827565.chunk.js:23)
at fa (vendors-addSlice-dashboard-profile-welcome.77167b2494c02e8d12f9.chunk.js:41)
at ca (vendors-addSlice-dashboard-profile-welcome.77167b2494c02e8d12f9.chunk.js:41)
at sa (vendors-addSlice-dashboard-profile-welcome.77167b2494c02e8d12f9.chunk.js:41)
ii @ vendors-addSlice-dashboard-profile-welcome.77167b2494c02e8d12f9.chunk.js:41
vendors-addSlice-dashboard-profile-welcome.77167b2494c02e8d12f9.chunk.js:41 Uncaught Error: Minified React error #188; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=188 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at r (vendors-EventFlow.0f0944afee5e19827565.chunk.js:29)
at m (vendors-EventFlow.0f0944afee5e19827565.chunk.js:29)
at bn (vendors-EventFlow.0f0944afee5e19827565.chunk.js:29)
at Object.findHostInstance (vendors-EventFlow.0f0944afee5e19827565.chunk.js:29)
at vendors-EventFlow.0f0944afee5e19827565.chunk.js:29
at Object.fe [as findDOMNode] (vendors-EventFlow.0f0944afee5e19827565.chunk.js:29)
at n.value (vendors-EventFlow.0f0944afee5e19827565.chunk.js:23)
at fa (vendors-addSlice-dashboard-profile-welcome.77167b2494c02e8d12f9.chunk.js:41)
at ca (vendors-addSlice-dashboard-profile-welcome.77167b2494c02e8d12f9.chunk.js:41)
at sa (vendors-addSlice-dashboard-profile-welcome.77167b2494c02e8d12f9.chunk.js:41)

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if any
  • I have reproduced the issue with at least the latest released version of superset
  • I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

Expected results

Actual results

Steps to reproduce

@jnishiyama
Copy link
Contributor

I'm experiencing the same issue.

@jnishiyama
Copy link
Contributor

@williaster You wouldn't happen to have any ideas here, would you? This bug is a blocker for EventFlow usage. I'd be more than willing to tackle the problem, but would need someone to point me in the right direction.

It almost seems as though multiple versions of React are being loaded, but I can't confirm. From my understanding of the stack trace that I get, it's coming from withBoundingRects in @vx/bounds when it's called from the EventFlow Tooltip. Embarrassingly enough, I haven't figured out a good way to mess around with the module inside of the Superset project, so I don't have better information than that.

@williaster
Copy link
Contributor

Sorry this one snuck by me, I'm pretty sure this error comes from React 15 being bundled with the visualization, which is incompatible with having React 16 present in the Superset app.

This may take me a day or two as the @data-ui library has a broken build that's been tricky to fix, but I had planned on working on it this week 👍

@williaster williaster self-assigned this Nov 12, 2018
@williaster williaster added the !deprecated-label:bug Deprecated label - Use #bug instead label Nov 12, 2018
@jnishiyama
Copy link
Contributor

@williaster left PR to fix build-config for data-ui and PR to bump @data-ui build-config version (to theoretical next version).

Will the upgrade to React 16 be simple?

@williaster
Copy link
Contributor

thanks @jnishiyama, just responding to those now. Superset is on React 16 and event-flow should also be compatible with that (just need a new release when the build is fixed).

When bumping the @data-ui/event-flow dep in Superset we'll also need to add add aphrodite as a dep (because it was incorrectly bundled along with React). Ideally we'd remove that because it's pretty heavy, but don't have bandwidth to take that on rn.

@williaster
Copy link
Contributor

Hmm trickier than I thought. I can get it to work in isolation in a code sandbox with different react versions, but still breaks in Superset. will continue to debug.

@kristw kristw added the .vis label Jan 8, 2019
@stale
Copy link

stale bot commented Apr 10, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive Inactive for >= 30 days label Apr 10, 2019
@stale stale bot closed this as completed Apr 17, 2019
@kamalsky
Copy link

Hi @williaster! Any luck with this viz? An upgrade to React 16 a good fix?

@williaster
Copy link
Contributor

This is fixed in our current deployment which is decently close to master.

@hyguod
Copy link

hyguod commented Sep 17, 2019

how to resolve it @williaster

@nabinkhadka
Copy link
Contributor

What is the fix @williaster ?

@williaster
Copy link
Contributor

This vis is being deprecated/no longer supported in data-ui, so we should likely remove it from the plugins.

See here for more williaster/data-ui#201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

7 participants