dash-core-components
dash-core-components copied to clipboard
SyntaxError when running Demo App
I am trying to run the core-components demo on my machine (OSX 11). I followed the readme setting things up.
git clone https://github.com/plotly/dash-core-components
python -m venv venv && . venv/bin/activate
pip install "dash[dev,testing]"
npm i --ignore-scripts && npm run build
npm start
When I load the page in Chrome I get the following error in the console.
output.js:895 Uncaught SyntaxError: Unexpected token ','
where output.js:895 reads
__webpack_require__.oe = function(err) { console.error(err); throw err; };,var getCurrentScript = function() {
I am not sure how to fix this problem as the file is auto-generated.
Any help is appreciated as I am new to webpack etc.
AFAIK the demo is not maintained, i.e. don’t worry about it.
Thanks for bringing this up @bjonen - @emilhe is right. I believe this pure React demo had a purpose early on in the development of Dash to help ensure the components themselves were working right independent of the Dash renderer and back end. But at this point I'm not sure there's much need for it. For example in the component boilerplate we don't have such a demo, we just advocate testing your work through Dash via usage.py.
@chriddyp @Marc-Andre-Rivet do you see a purpose keeping and maintaining the pure React demo, here and in other repos?