Airflow front-end is broken in local development environment #46828
-
Hi all. I am running a local development environment of Apache Airflow 2.10.4 in my Mac laptop. Its frontend is broken like runs are not getting populated, links to DAG and task run details, logs and charts are not populating. I had built the front-end assets in www/static directory following the INSTALL instructions.
The webserver logs show a lot of 404 status codes for CSS and JS files. These files are preset in (AIRFLOW_HOME/www) /static/css or /static/js directory. However, the webserver log shows that Airflow is looking for these files in /static directory. The paths for these files seem to be correctly configured in webpack.config.js, tsconfig.json and jest.config.js. I am wondering if the Airflow code on my machine is skipping these config files for some reason. The full webserver log is present here.
Appreciate any guidance on how to debug the issue further. ![]() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The build should result with |
Beta Was this translation helpful? Give feedback.
The build should result with
dist
folder - and you utilizepre-commit run --hook-stage manual compile-www-assets --all-files
if you build airflow from sources. Possibly your build failed for some reason or you have wrong version of tools, pre-commit - once you install it - should install and use the right version of those tools