AttributeError: 'str' object has no attribute 'main_script_path'

Hi Everyone,
I have an app that is executing in local and yet to deploy it to cloud.
I’m facing the below issue once i execute the app:

Traceback (most recent call last):
File “C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py”, line 589, in run_script
exec(code, module.dict)
File “C:\Users\Desktop\Certification Website\CertReq\app_sections.py”, line 5, in
show_pages(
File “C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\metrics_util.py”, line 408, in wrapped_func
result = non_optional_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\st_pages_init
.py", line 252, in _show_pages
rt._sources_watcher = LocalSourcesWatcher(rt._main_script_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “C:\Users\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\watcher\local_sources_watcher.py”, line 51, in init
self._main_script_path = os.path.abspath(self._pages_manager.main_script_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘str’ object has no attribute ‘main_script_path’

i am facing the same issue since i first ran the new st.Pages version in Streamlit 1.36.0 and then wanted to switch back to the created component st-pages. st-pages seems not be updated for streamlit 1.36.0 i switched back to 1.35 and it works back, (the component st-pages, not the new built in st.Pages).