dosubot[bot] commented on issue #33766:
URL: https://github.com/apache/superset/issues/33766#issuecomment-2970248935

   <!-- Greeting -->
   Hi @kuranium! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.
   
   <!-- Answer -->
   The error you're seeing—`TypeError: (0 , 
_superset_ui_core__WEBPACK_IMPORTED_MODULE_1__.t) is not a function`—happens 
because the dynamic plugin example imports the translation utility `t` 
incorrectly. In the current Superset codebase, `t` is a named export, not a 
default export. So, instead of `import t from '@superset-ui/core'`, you need to 
use `import { t } from '@superset-ui/core'` in your plugin code. This change 
should resolve the error when loading your dynamic plugin with the latest 
Superset version 
[(source)](https://github.com/apache/superset/blob/2b1d4a02b0252ee4ba8bca1ad96d2780bd6da929/superset-frontend/packages/superset-ui-core/src/translation/TranslatorSingleton.ts).
   
   The dynamic plugin system and its documentation are indeed in flux. The 
Superset team is actively restructuring UI components and the plugin 
architecture, which may cause further changes and breakages in plugin 
development [(source)](https://github.com/apache/superset/issues/33441). 
Maintainers have noted that the current plugin system is not actively 
maintained and recommend caution when building new plugins until the new 
framework is released 
[(source)](https://github.com/apache/superset/issues/32433).
   
   If you need more resources, the [Community Resource 
Library](https://github.com/apache/superset/wiki/Community-Resource-Library) 
has links to guides and videos on building custom plugins, though dynamic 
plugin specifics are still sparse.
   
   If you run into permission issues (like 403 errors on public dashboards), 
make sure the `can List on DynamicPlugin` permission is added to the public 
role [(source)](https://github.com/apache/superset/issues/33548).
   
   Let me know if you need help updating your plugin code or troubleshooting 
further!
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/fcfaffe3-2767-4402-8bba-da5ea2e52cf3?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/fcfaffe3-2767-4402-8bba-da5ea2e52cf3?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/fcfaffe3-2767-4402-8bba-da5ea2e52cf3?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/fcfaffe3-2767-4402-8bba-da5ea2e52cf3?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/fcfaffe3-2767-4402-8bba-da5ea2e52cf3?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/fcfaffe3-2767-4402-8bba-da5ea2e52cf3?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/fcfaffe3-2767-4402-8bba-da5ea2e52cf3?feedback_type=other)</sup>&nbsp;&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[!
 [Share on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/33766)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to