streamlit not working (show blank page) on microsoft edge and safari brower

I just created a simple streamlit app using the three lines of code as below:

st.header(‘test browser’)

st.write(‘st write is okay’)

st.button(‘test button’)

My streamlit environment server configuration is Ubuntu 20.04, Python 3.11, Streamlit 1.38. It works well on Chrome and Firefox, 360, QQ browser, etc. But on MacBook Pro Safari and on Windows Microsoft Edge, the page is totally blank. When I check the console of Microsoft Edge browser, it showed an error message: SCRIPT1028: Expected identifier, string or number, main.33cac65c.js.

It seems something is wrong with the main JavaScript compatibility. On Safari, I don’t know how to check the console, so I did not get the error message. What should I do? Are there some ways to solve this problem?