plotly / dash-daq

Control components for Dash
MIT License
141 stars 40 forks source link

Components fail to load for dash-daq v0.1.6 #57

Closed ycaokris closed 5 years ago

ycaokris commented 5 years ago

A few components in demo.py doesn't show up when bump dash-daq from 0.1.5 to 0.1.6.

requirements running demo.py: dash==1.0.0


This comes from daq0.1.6:

screencapture-127-0-0-1-8050-2019-07-17-11_04_10

with dev_tool errors:

Screen Shot 2019-07-17 at 11 15 09 AM

Comparing with v0.1.5:

screencapture-127-0-0-1-8050-2019-07-17-11_05_58

vivekvs1 commented 5 years ago

Even I am having the same issues. Its throwing frontend error as follows:

Cannot read property 'subscribe' of undefined

(This error originated from the built-in JavaScript code that runs Dash apps. Click to see the full stack trace or open your browser's console.)
TypeError: Cannot read property 'subscribe' of undefined
at r.componentWillMount (http://localhost:8050/trafficnoise/_dash-component-suites/dash_daq/bundle.js?v=0.1.6&m=1563292449:2:716)

at Pd (http://localhost:8050/trafficnoise/_dash-component-suites/dash_renderer/react-dom@16.8.6.min.js?v=1.0.0&m=1561130096:69:98)

at qg (http://localhost:8050/trafficnoise/_dash-component-suites/dash_renderer/react-dom@16.8.6.min.js?v=1.0.0&m=1561130096:92:314)

at hi (http://localhost:8050/trafficnoise/_dash-component-suites/dash_renderer/react-dom@16.8.6.min.js?v=1.0.0&m=1561130096:104:285)

at Qg (http://localhost:8050/trafficnoise/_dash-component-suites/dash_renderer/react-dom@16.8.6.min.js?v=1.0.0&m=1561130096:144:293)

at Rg (http://localhost:8050/trafficnoise/_dash-component-suites/dash_renderer/react-dom@16.8.6.min.js?v=1.0.0&m=1561130096:145:168)

at Sc (http://localhost:8050/trafficnoise/_dash-component-suites/dash_renderer/react-dom@16.8.6.min.js?v=1.0.0&m=1561130096:158:109)

at Z (http://localhost:8050/trafficnoise/_dash-component-suites/dash_renderer/react-dom@16.8.6.min.js?v=1.0.0&m=1561130096:156:492)

at Kc (http://localhost:8050/trafficnoise/_dash-component-suites/dash_renderer/react-dom@16.8.6.min.js?v=1.0.0&m=1561130096:155:69)

at ya (http://localhost:8050/trafficnoise/_dash-component-suites/dash_renderer/react-dom@16.8.6.min.js?v=1.0.0&m=156
shammamah-zz commented 5 years ago

This error is most likely due to dash-1.0.0's incompatibility with React 15. I'll upgrade it!

shammamah-zz commented 5 years ago

@ycaokris or @vivekvs1 Could you give me the output of pip freeze | grep dash?

ycaokris commented 5 years ago
dash-core-components==1.0.0
dash-daq==0.1.6
dash-html-components==1.0.0
dash-renderer==1.0.0
dash-table==4.0.0

@shammamah

vivekvs1 commented 5 years ago

@shammamah

appdirs==1.4.3 asn1crypto==0.24.0 atomicwrites==1.3.0 attrs==19.1.0 beautifulsoup4==4.7.1 black==19.3b0 certifi==2019.3.9 cffi==1.12.3 chardet==3.0.4 Click==7.0 colorama==0.4.1 cryptography==2.7 dash==1.0.2 dash-bootstrap-components==0.6.3 dash-core-components==1.0.0 dash-daq==0.1.6 dash-html-components==1.0.0 dash-renderer==1.0.0 dash-table==4.0.2 decorator==4.4.0 Flask==1.0.2 Flask-Compress==1.4.0 idna==2.8 importlib-metadata==0.18 ipython-genutils==0.2.0 itsdangerous==1.1.0 Jinja2==2.10.1 jsonschema==3.0.1 jupyter-core==4.4.0 lxml==4.3.4 MarkupSafe==1.1.1 more-itertools==7.0.0 nbformat==4.4.0 numpy==1.16.3 packaging==19.0 pandas==0.24.2 percy==2.0.2 plotly==4.0.0 pluggy==0.12.0 py==1.8.0 pycparser==2.19 pyOpenSSL==19.0.0 pyparsing==2.4.0 pyrsistent==0.15.2 pytest==4.6.3 pytest-mock==1.10.4 pytest-sugar==0.9.2 python-dateutil==2.8.0 pytz==2019.1 PyYAML==5.1.1 requests==2.21.0 retrying==1.3.3 scipy==1.3.0 selenium==3.141.0 six==1.12.0 soupsieve==1.9.1 termcolor==1.1.0 toml==0.10.0 traitlets==4.3.2 urllib3==1.24.3 waitress==1.3.0 wcwidth==0.1.7 Werkzeug==0.15.2 wincertstore==0.2 xlrd==1.2.0 zipp==0.5.1