Hey there,
I’ve been trying to build dash-daq for a while now. I followed the instructions given in the Readme which are pretty straight foward:
$ git clone https://github.com/plotly/dash-daq.git
$ yarn
$ yarn install-local
$ pip install pyyaml
$ yarn start
In the end I get the following errors for ColorPicker and Slider:
Error with path src/components/ColorPicker.react.jsError: did not recognize object of type "ImportExpression"
Error: did not recognize object of type "ImportExpression"
at Object.getFieldNames (/dash-daq/node_modules/ast-types/lib/types.js:701:19)
at getSortedChildNodes (/dash-daq/node_modules/recast/lib/comments.js:50:23)
at getSortedChildNodes (/dash-daq/node_modules/recast/lib/comments.js:63:9)
at decorateComment (/dash-daq/node_modules/recast/lib/comments.js:73:22)
at decorateComment (/dash-daq/node_modules/recast/lib/comments.js:84:13)
at decorateComment (/dash-daq/node_modules/recast/lib/comments.js:84:13)
at decorateComment (/dash-daq/node_modules/recast/lib/comments.js:84:13)
at decorateComment (/dash-daq/node_modules/recast/lib/comments.js:84:13)
at /dash-daq/node_modules/recast/lib/comments.js:129:9
at Array.forEach (<anonymous>)
Error with path src/components/Slider.react.jsError: did not recognize object of type "ImportExpression"
Error: did not recognize object of type "ImportExpression"
at Object.getFieldNames (/dash-daq/node_modules/ast-types/lib/types.js:701:19)
at getSortedChildNodes (/dash-daq/node_modules/recast/lib/comments.js:50:23)
at getSortedChildNodes (/dash-daq/node_modules/recast/lib/comments.js:63:9)
at decorateComment (/dash-daq/node_modules/recast/lib/comments.js:73:22)
at decorateComment (/dash-daq/node_modules/recast/lib/comments.js:84:13)
at decorateComment (/dash-daq/node_modules/recast/lib/comments.js:84:13)
at decorateComment (/dash-daq/node_modules/recast/lib/comments.js:84:13)
at decorateComment (/dash-daq/node_modules/recast/lib/comments.js:84:13)
at /dash-daq/node_modules/recast/lib/comments.js:129:9
at Array.forEach (<anonymous>)
Generated BooleanSwitch.py
Generated DarkThemeProvider.py
Generated Gauge.py
Generated GraduatedBar.py
Generated Indicator.py
Generated Joystick.py
Generated Knob.py
Generated LEDDisplay.py
Generated NumericInput.py
Generated PowerButton.py
Generated PrecisionInput.py
Generated StopButton.py
Generated Tank.py
Generated Thermometer.py
Generated ToggleSwitch.py
Done in 17.50s.
I tried it on Windows and in a Docker-Container running the CI image circleci/python:3.7-stretch-node.
Does somebody know where this is coming from and how to fix it?
Regards
Stefan