1046: Type was not found or was not a compile-time constant
This bug can happen for all sorts of reasons…… and it won’t throw up much information as to what the problem really is. In my case the reason I was seeing it was that I had my library item class named the same as the stage instance and/or the class reference to the object itself. Solution – make sure your names are different between class object, library class name and stage instance. Hopefully this may save someone out there some time…..