0
我使用autobind-decorator
bind
上下文到this
。流量类型关闭`实验装饰器使用量'的关闭警告#
但我得到警告/错误Experimental decorator usage (Decorators are an early stage proposal that may change)
我如何关闭这个警告呢?
我使用autobind-decorator
bind
上下文到this
。流量类型关闭`实验装饰器使用量'的关闭警告#
但我得到警告/错误Experimental decorator usage (Decorators are an early stage proposal that may change)
我如何关闭这个警告呢?
您需要在.flowconfig
文件的[options]
部分下添加esproposal.decorators=ignore
。请注意,Flow不会理解添加的装饰器的任何类型含义,它会简单地忽略它们。
Here is the explanation for this flag in the Flow documentation.
尝试将此添加到您的.babelrc文件:'{ “预设”:“反应天然的”],“插件”:“改造功能绑定”,“变换装饰-legacy“] }' – Cherniv
@Cherniv您提供的配置使装饰者能够与[email protected]6一起工作。谢谢=)但警告仍然存在。 – Val