diff --git a/src/templates-worker.ts b/src/templates-worker.ts index 98888ccdd..6d870fa52 100644 --- a/src/templates-worker.ts +++ b/src/templates-worker.ts @@ -38,7 +38,8 @@ export class TemplatesWorker { const originalTemplatesPath = config.modular ? modularTemplatesPath : defaultTemplatesPath; - const customTemplatesPath = path.resolve(process.cwd(), config.templates); + const customTemplatesPath = + config.templates && path.resolve(process.cwd(), config.templates); return { /** `templates/base` */