Object destructuring unparsable in main function - Windmill