![](/img/trans.png)
[英]typescript TS1241: Unable to resolve signature of method decorator when called as an expression
[英]Getting error TS1241: Unable to resolve signature of method decorator when called as an expression
在"module": "commonjs"
中的编译器选项中添加"module": "commonjs"
对我有用。
另外,请确保使用TypeScript 3.2或更高版本,我认为回送加速器需要它。 有了它,我认为您不需要添加目标版本,因为配置是从环回扩展的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.