diff --git a/reflex/utils/imports.py b/reflex/utils/imports.py index b86716cf1..bd422ecc0 100644 --- a/reflex/utils/imports.py +++ b/reflex/utils/imports.py @@ -26,7 +26,7 @@ def merge_imports( # If the lib is an absolute path, we need to prefix it with a $ lib = ( "$" + lib - if lib.startswith(("/utils/", "/components/", "/styles/")) + if lib.startswith(("/utils/", "/components/", "/styles/", "/public/")) else lib ) if isinstance(fields, (list, tuple, set)):