templateDir may not be set