Update generator template to add missing `require`