Go to System Preferences > Security & Privacy > Accessibility and make sure Hammerspoon.app is checked.
Without those permissions, it can't move and modify windows.
Make sure Hammerspoon has the 'Accessibility' permissions. Click on the Hammerspoon menubar icon again, and click on 'Reload Config'.