Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cypress 错误:设置experimentalDecorators选项以删除此警告_Cypress_Javascript Decorators - Fatal编程技术网

Cypress 错误:设置experimentalDecorators选项以删除此警告

Cypress 错误:设置experimentalDecorators选项以删除此警告,cypress,javascript-decorators,Cypress,Javascript Decorators,我使用的是Cypress版本3.3.1。我得到以下错误: 错误:“TS1219:装饰程序的实验性支持是一项功能,可能会在将来的版本中更改。请设置'experimentalDecorators'选项以删除此警告。” PS:我已经在tsconfig.json中设置了“experimentalDecorators”:true。 尝试了以下操作,但无效: 报告错误的代码: @可观测公共someVar:dataType; 我在测试目录下创建了tsconfig.json,即myu-project/\uu-t

我使用的是Cypress版本3.3.1。我得到以下错误:

错误:“TS1219:装饰程序的实验性支持是一项功能,可能会在将来的版本中更改。请设置'experimentalDecorators'选项以删除此警告。”

PS:我已经在
tsconfig.json
中设置了
“experimentalDecorators”:true
。 尝试了以下操作,但无效:

报告错误的代码:

@可观测公共someVar:dataType;

我在测试目录下创建了
tsconfig.json
,即
myu-project/\uu-tests\uu/integration/tsconfig.json
,并将
expericalDecorators
设置为
true

{
“编译器选项”:{
“实验者”:真的吗
}
}

您知道Cypress文档页面中列出并描述了可用的装饰器吗?我没有找到任何关于你的东西