I had been using the navigation component as defined here:
However, recently my app has been generating an error with this navigation configuration:
import streamlit as st
st.set_page_config(page_title="Home", layout="wide")
pages = {
"OPS Dashboard" : [
st.Page("Home.py", title="Home"),
st.Page("Uptim.py", title="CKAN")
],
}
pg = st.navigation(pages)
pg.run()
Error:
AttributeError: ‘StreamlitPage’ object has no attribute ‘_default’
Its running locally and used to be working just fine. I am using streamlit version 1.36 and have been using it since the beginning of this app.
Is this a known bug or just me being an idiot?