Bugfix for Visual Studio

I embedded my Dash App in Flask and I recently worked on it in Visual Studio Code. As I decided to go on with Visual Studio, I receive a strange exeption thrown when I try to compile one of my pages. The App works fine if I compile it in VS Code. Can somebody help me or tell me how to fix this exeption in Visual Studio? :