Skip to content

Template v2 Component is already registered warning #13042

@ghilesmeddour

Description

@ghilesmeddour

When running example.py, the following warning always appears:

2025-11-08 17:37:47.131 Component comp3.comp3 is already registered. Overwriting previous definition. This may lead to unexpected behavior if different modules register the same component name with different definitions.

Reproduce

uvx --from cookiecutter cookiecutter gh:streamlit/component-template --directory cookiecutter/v2

npm --prefix comp3/frontend install
npm --prefix comp3/frontend run build

(uv pip install -e .)
uv run streamlit run ./example.py

Metadata

Metadata

Assignees

Labels

feature:custom-componentsRelated to custom componentspriority:P3Medium prioritystatus:confirmedBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions