官方文档 Documentation | NestJS - A progressive Node.js framework
// nest-cli.json
{
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"assets": [
"microservices/mail/templates/"
],
"watchAssets": true
}
}
原因:assets路径应该是相对于sourceRoot的相对路径