浏览代码

fix custom component init (#4123)

Thomas Brandého 7 月之前
父节点
当前提交
5e3cfecdea
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      reflex/custom_components/custom_components.py

+ 1 - 1
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 is the snake case.
     module_name = "_".join(name_parts)
     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}")
     console.debug(f"Custom component source directory: {custom_component_module_dir}")
 
 
     # Use the same name for the directory and the app.
     # Use the same name for the directory and the app.