Module not found Error Building custom viz plugins in superset #18912
Labels
#bug
Bug report
doc:developer
Developer documentation
doc
Namespace | Anything related to documentation
A clear and concise description of what the bug is.
I am trying to install Superset for building custom visualization using the guide at: https://superset.apache.org/docs/installation/building-custom-viz-plugins/
Please note that I am attempting it on Ubuntu 20.04 VMs behind a proxy. And I am running superset on http://localhost:9000/(in dev mode)
However, for tinkering with custom visualizations, I need to go https://superset.apache.org/docs/installation/building-custom-viz-plugins/#add-your-plugin-to-superset-with-npm-link. After following all the steps successfully when I run it on 9000 port
I got this error. "Module not found: Error: Can't resolve '@superset-ui/plugin-chart-hello-world' in '/home/rrscw/superset/superset-frontend/src/visualizations/presets''
How to reproduce the bug
Expected results
hello world chart plugin visible in superset on port 9000 in dev mode.
Actual results
https://superset.apache.org/docs/installation/building-custom-viz-plugins/#add-your-plugin-to-superset-with-npm-link
After adding package in package.json using above link and successfully doing changes in MainPreset.js file I got this error:
ERROR in ./src/visualizations/presets/MainPreset.js 40:0-74
Module not found: Error: Can't resolve '@superset-ui/plugin-chart-hello-world' in '/home/rrscw/superset/superset-frontend/src/visualizations/presets'
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
(please complete the following information):
OS: Ubuntu Server 20.04
Python on VM: 3.8.10
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: