"sidebar" is not a known member of module

Does anyone know where this error comes from? The app still seems to run fine, but getting these underlines is very annoying. For some reason, vscode is not always able to read the members.

Hello @yemaney,

My guess is you named your script streamlit.py, and when you do import streamlit as st, vscode thinks you imported your script instead of the real streamlit module. Try renaming your script and tell me if you still get these errors.

2 Likes

Thank you, that is exactly what it was. Not sure where I got the habit from, but I think I read tutorials that used the streamlit as the script name.

1 Like