After upgrading the Esri flexviewer from 2.0 beta to 2.1, I have the same issue. When a widget gets loaded, I get the same error: Widgets - Undefined state 'open'. ERROR
Debugging the application, I found that widget templates have two states: disabled and normal
I'm investigating... Maybe a compiler argument to add...
Ganael