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

How to run Superset locally for front-end development? #6503

Closed
3 tasks
silentarrowz opened this issue Dec 8, 2018 · 1 comment
Closed
3 tasks

How to run Superset locally for front-end development? #6503

silentarrowz opened this issue Dec 8, 2018 · 1 comment

Comments

@silentarrowz
Copy link

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 there are 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

0.28

Expected results

able to run react in dev mode

Actual results

unable to run react in dev mod

Steps to reproduce

go to the folder superset/lib/static/assets and give command
npm run dev-server

get the following errors



ERROR in multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/SqlLab/index.jsx
Module not found: Error: Can't resolve '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets/src/SqlLab/index.jsx' in '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets'
 @ multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/SqlLab/index.jsx sqllab[3]

ERROR in multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/addSlice/index.jsx
Module not found: Error: Can't resolve '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets/src/addSlice/index.jsx' in '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets'
 @ multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/addSlice/index.jsx addSlice[3]

ERROR in multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js ./src/common.js
Module not found: Error: Can't resolve '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets/src/common.js' in '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets'
 @ multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js ./src/common.js common[2]

ERROR in multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/dashboard/index.jsx
Module not found: Error: Can't resolve '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets/src/dashboard/index.jsx' in '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets'
 @ multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/dashboard/index.jsx dashboard[3]

ERROR in multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/explore/index.jsx
Module not found: Error: Can't resolve '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets/src/explore/index.jsx' in '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets'
 @ multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/explore/index.jsx explore[3]

ERROR in multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/profile/index.jsx
Module not found: Error: Can't resolve '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets/src/profile/index.jsx' in '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets'
 @ multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/profile/index.jsx profile[3]

ERROR in multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js ./src/theme.js
Module not found: Error: Can't resolve '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets/src/theme.js' in '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets'
 @ multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js ./src/theme.js theme[2]

ERROR in multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/welcome/index.jsx
Module not found: Error: Can't resolve '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets/src/welcome/index.jsx' in '/home/faraz/ENV/lib/python3.6/site-packages/superset/static/assets'
 @ multi (webpack)-dev-server/client?http://localhost:9000 (webpack)/hot/dev-server.js babel-polyfill ./src/welcome/index.jsx welcome[3]

Please tell me how to fix these errors and be able to make changes in react in dev mode.
or maybe tell me where it is mentioned in the documentation
I have been trying it for quite some time now and was unable to do so.

@kristw kristw changed the title unable to run react dev mode How to run Superset locally for front-end development? Dec 11, 2018
@kristw
Copy link
Contributor

kristw commented Dec 11, 2018

Please see #6513

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants