Hi Streamlit Community,
I’m encountering an issue where the sidebar for my multi-page app is not appearing when deployed on Streamlit Community Cloud, although it works perfectly when I run it locally.
Problem:
-
The automatically generated sidebar for navigating between pages (defined by files in the Pages/ directory) is completely missing in the deployed app.
-
There is no collapse/expand arrow (>) visible in the top-left corner.
-
The app itself loads the content of the main script (Yang_Portfolio.py) without apparent crashing errors.
-
This behavior occurs consistently after deployment.
App Details:
-
Deployed App URL: https://yang-portfolio-management.streamlit.app/
-
GitHub Repository: https://github.com/yangcredible/Yang_Portco
-
Streamlit Version (from requirements.txt): streamlit==1.45.0 (also tested other recent versions with the same result)
Troubleshooting Steps Taken:
-
Main File Path: I have confirmed in the Streamlit Cloud app settings that the “Main file path” is correctly set to Yang_Portfolio.py.
-
Directory Structure: I have verified that the Pages/ directory (uppercase ‘P’) is located in the root of the repository, alongside Yang_Portfolio.py, and contains the page scripts (1_…py, 2_…py, etc.). This structure works locally.
-
.gitignore: I have checked my .gitignore file and confirmed it does not exclude the Pages/ directory or .py files.
-
Deployment Logs: I have carefully reviewed the build and runtime logs on Streamlit Community Cloud multiple times. There are no apparent errors reported during dependency installation or application startup. Dependencies seem to install correctly using uv.
-
Browser Cache/Incognito: I have tested the deployed app in incognito mode and different browsers with the same result (no sidebar).
-
Reboot: I have rebooted the application multiple times via the Streamlit Cloud dashboard.
-
Minimal Test App: To isolate the issue, I created and deployed a separate, minimal multi-page app:
-
Minimal App URL: https://test111-gtknpvefyxp2tfyqscnt2q.streamlit.app/
-
Minimal App Repo: https://github.com/yangcredible/test111 (Contains only main.py, Pages/1_Test.py, and basic requirements.txt)
-
Result: The sidebar also fails to appear in this minimal test app deployment, despite having the correct structure and main file path setting.
Conclusion:
Since the minimal test case also exhibits the same behavior, this strongly suggests the issue is likely not within my specific application code (Yang_Portfolio.py logic) but might be related to the Streamlit Cloud environment, page discovery mechanism in deployment, or perhaps something specific to my account/workspace setup.
Could anyone offer insights or suggestions on what might be causing Streamlit Cloud to fail to generate the multi-page sidebar in this scenario, even when logs are clean and structure appears correct?
Thanks in advance for any help!