From 475f666998da084a93c95e5a3a9c83648dae4aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Brand=C3=A9ho?= Date: Tue, 8 Oct 2024 09:15:56 -0700 Subject: [PATCH] fix custom component init (#4123) --- reflex/custom_components/custom_components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/custom_components/custom_components.py b/reflex/custom_components/custom_components.py index 146bb12c2..ee24a7cd0 100644 --- a/reflex/custom_components/custom_components.py +++ b/reflex/custom_components/custom_components.py @@ -260,7 +260,7 @@ def _validate_library_name(library_name: str | None) -> NameVariants: # Module name is the snake case. module_name = "_".join(name_parts) - custom_component_module_dir = f"reflex_{module_name}" + custom_component_module_dir = Path(f"reflex_{module_name}") console.debug(f"Custom component source directory: {custom_component_module_dir}") # Use the same name for the directory and the app.