Unable to resolve signature of class decorator when called as an expression

Posted 曹豆芽

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unable to resolve signature of class decorator when called as an expression相关的知识,希望对你有一定的参考价值。

今天在写react-ts的项目的时候,去操作redux,使用装饰器的时候,它这个时候开始出现Unable to resolve signature of class decorator when called as an expression(作为表达式调用时,无法解析类修饰器的签名。)这个错误。

在这里插入图片描述
豆芽也是反复看了一下,最后将connect重命名,发现是可以跳过这个错误。然后可以正常的使用。

const connects: Function = connect;

在这里插入图片描述

以上是关于Unable to resolve signature of class decorator when called as an expression的主要内容,如果未能解决你的问题,请参考以下文章

Unable to resolve module crypto

ERESOLVE unable to resolve dependency tree

ERESOLVE unable to resolve dependency tree

ERESOLVE unable to resolve dependency tree

Unable to resolve dependency for xxx, Could not resolve project

wget: unable to resolve host address “http”