how to avoid export documentation errors