-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Module not found when creating Visualization Plugins #32433
Comments
I found a similar closed issue that might be relevant to your problem: Module not found Error Building custom viz plugins in superset. This issue was closed by a pull request that removed old visualization plugin documentation, which might indicate that the documentation you followed could be outdated [1]. To address the React version conflict you're encountering, you can try the following steps:
These steps should help resolve the dependency conflicts and allow you to proceed with creating and importing your custom visualization plugin. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
@villebro could you please put me on the right direction? |
@jpchev we're currently hard at work to improve the extension architecture (see #31932), as the current plugin system has multiple issues. I would almost advise against creating new visualization plugins until the new framework has been rolled out. But if you do want to work with the existing system, I recommend using 4.1.1 as the base, as that should have React 16 which is required by the plugin peer dependencies. |
Bug description
i've gone through the documentation to create a custom plugin
https://superset.apache.org/docs/contributing/howtos/#creating-visualization-plugins
but I get the following error
Module not found: Error: Can't resolve 'superset-plugin-chart-hello-world' in '/app/superset-frontend/src/visualizations/presets'
when running this command
npm i -S /tmp/superset-plugin-chart-hello-world
btw, this command
yo @superset-ui/superset
gives the following error
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
3.9
Node version
16
Browser
Chrome
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: