试图在开发人员模式下运行apache超级集前端,但直到现在仍无法执行。 这是我尝试过的
我已转到相关文件夹,即
~/ENV/lib/python3.6/site-packages/superset/static/assets
并完成了npm run dev-server
我收到这个错误
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]
请告诉我如何解决此问题。
我现在可以使用superset runserver -d
运行超集服务器
然后在另一个终端中运行npm run dev-server
,并得到我上面粘贴的错误。
请告诉我我该怎么做
尽管应该在端口9000上运行开发人员,但无法正常工作。基本上,我想使用它的react前端并对其进行更改,但是当apache superset运行时,由于它是生产模式,因此它没有显示出react devtools中正确的组件名称。 因此,我希望能够在开发模式下运行前端。