"generate.routes" must be an array
Please add support for callback function routes. I got it to work by changing those lines
to support functions by doing
nuxtOpts.generate.routes().then(routes => routes.concat(routeData))
but I can't get the module to build for whatever reason, or else I'd submit a pull request.