以下 tsconfig.json 片段可以开启修饰符 @ 支持,适用于 Nest.js 等场景: { "compilerOptions": { "emitDecoratorMetadata": true, "experimentalDecorators": true } }