okld / streamlit-elements

Create a draggable and resizable dashboard in Streamlit, featuring Material UI widgets, Monaco editor (Visual Studio Code), Nivo charts, and more!
MIT License
679 stars 77 forks source link

Getting an error 'we is not a function' though there is no we in my code. #11

Open Socvest opened 2 years ago

Socvest commented 2 years ago

Really appreciate this component, I am having to rely on it as native streamlit does not allow for nesting of columns for a particular app feature I am building.

After having employed the Autocomplete mui widget, I get an error suggesting ElementsFrontendError: In elements frame 'streamlit_elements.core.frame.elements_frame.workboard': we is not a function when in fact there is no we in my code. I looked into my streamlit session_state key values and also found no we there as the error callbacks seem to point to session state. What seems to be the problem here? Would kindly appreciate some help resolving this issue.

Really love this component as it gives a pythonic feel to the typescript/react coding and expands the capabilities of streamlit.

indrasantosa commented 1 month ago

Had the same issue, I found it is related to the renderInput callback function that is required.