You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deploying changes> Build Failed: No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings.
#5
Open
szew404 opened this issue
Jan 8, 2025
· 0 comments
☑️ Realicé un re-deploy repetidas ocaciones
☑️ Actualicé la version de Reflex: 0.4.5 -> 0.6.7
Descripción
Al momento de desplegar un cambio en el repositorio 'portafolio-template' en Vercel, se obtiene el siguiente error:
Build Failed
No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings.
Log relacionado:
unzip: cannot find or open frontend.zip, frontend.zip.zip or frontend.zip.ZIP.
Error: No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings.
El error mencionado arriba se debe a causa de otro error que se produce anteriormente en la linea de tiempo de ejecución de Reflex en el despliegue, lo que impide que Reflex "exporte el frontend"/cree el directorio 'public':
Reflex utiliza Pydantic en el archivo python3.12/site-packages/reflex/components/component.py
En python 3.12.0 (version default en Vercel), la versión de Pydantic recientemente publicada pydantic-1.10.20 no funciona con anotaciones de tipo forward ref.
Detalle del error:
TypeError: ForwardRef._evaluate() got an unexpected keyword argument 'type_params'
Traceback (most recent call last):
File "/vercel/path0/.venv/bin/reflex", line 8, in <module>
sys.exit(cli())
^^^^^
File "/vercel/path0/.venv/lib/python3.12/site-packages/typer/main.py", line 340, in __call__
raise e
File "/vercel/path0/.venv/lib/python3.12/site-packages/typer/main.py", line 323, in __call__
return get_command(self)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/vercel/path0/.venv/lib/python3.12/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/vercel/path0/.venv/lib/python3.12/site-packages/typer/core.py", line 743, in main
return _main(
^^^^^^
File "/vercel/path0/.venv/lib/python3.12/site-packages/typer/core.py", line 198, in _main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/vercel/path0/.venv/lib/python3.12/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/vercel/path0/.venv/lib/python3.12/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/vercel/path0/.venv/lib/python3.12/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/vercel/path0/.venv/lib/python3.12/site-packages/typer/main.py", line 698, in wrapper
return callback(**use_params)
^^^^^^^^^^^^^^^^^^^^^^
File "/vercel/path0/.venv/lib/python3.12/site-packages/reflex/reflex.py", line 293, in export
export_utils.export(
File "/vercel/path0/.venv/lib/python3.12/site-packages/reflex/utils/export.py", line 59, in export
prerequisites.get_compiled_app()
File "/vercel/path0/.venv/lib/python3.12/site-packages/reflex/utils/prerequisites.py", line 218, in get_compiled_app
app_module = get_app(reload=reload)
^^^^^^^^^^^^^^^^^^^^^^
File "/vercel/path0/.venv/lib/python3.12/site-packages/reflex/utils/prerequisites.py", line 195, in get_app
app = __import__(module, fromlist=(constants.CompileVars.APP,))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/vercel/path0/portafolio/portafolio.py", line 3, in <module>
from portafolio.styles.styles import BASE_STYLE, MAX_WIDTH, STYLESHEETS, EmSize, Size
File "/vercel/path0/portafolio/styles/styles.py", line 27, in <module>
BASE_STYLE = {rx.button: {"--cursor-button": "pointer"}}
^^^^^^^^^
File "/vercel/path0/.venv/lib/python3.12/site-packages/reflex/__init__.py", line 214, in __getattr__
module = importlib.import_module(_MAPPING[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/python312/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/vercel/path0/.venv/lib/python3.12/site-packages/reflex/components/__init__.py", line 4, in <module>
from . import lucide
File "/vercel/path0/.venv/lib/python3.12/site-packages/reflex/components/lucide/__init__.py", line 3, in <module>
from .icon import Icon
File "/vercel/path0/.venv/lib/python3.12/site-packages/reflex/components/lucide/icon.py", line 3, in <module>
from reflex.components.component import Component
File "/vercel/path0/.venv/lib/python3.12/site-packages/reflex/components/component.py", line 51, in <module>
class BaseComponent(Base, ABC):
File "pydantic/main.py", line 292, in pydantic.main.ModelMetaclass.__new__
File "pydantic/main.py", line 813, in pydantic.main.BaseModel.__try_update_forward_refs__
File "pydantic/typing.py", line 566, in pydantic.typing.update_model_forward_refs
def never_call_me(arg: Never) -> None:
File "pydantic/typing.py", line 532, in pydantic.typing.update_field_forward_refs
raise TypeError("Any cannot be instantiated")
File "pydantic/typing.py", line 75, in pydantic.typing.evaluate_forwardref
'Iterable',
TypeError: ForwardRef._evaluate() got an unexpected keyword argument 'type_params'
The text was updated successfully, but these errors were encountered:
Chequeos iniciales
☑️ Realicé un re-deploy repetidas ocaciones
☑️ Actualicé la version de Reflex: 0.4.5 -> 0.6.7
Descripción
Al momento de desplegar un cambio en el repositorio 'portafolio-template' en Vercel, se obtiene el siguiente error:
Log relacionado:
El error mencionado arriba se debe a causa de otro error que se produce anteriormente en la linea de tiempo de ejecución de Reflex en el despliegue, lo que impide que Reflex "exporte el frontend"/cree el directorio 'public':
Reflex utiliza Pydantic en el archivo
python3.12/site-packages/reflex/components/component.py
En python 3.12.0 (version default en Vercel), la versión de Pydantic recientemente publicada pydantic-1.10.20 no funciona con anotaciones de tipo forward ref.
Detalle del error:
TypeError: ForwardRef._evaluate() got an unexpected keyword argument 'type_params'
The text was updated successfully, but these errors were encountered: