The 'decorators' plugin requires a 'decoratorsBeforeExport' option, ...(npm start报错)
Posted xiao-pengyou
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The 'decorators' plugin requires a 'decoratorsBeforeExport' option, ...(npm start报错)相关的知识,希望对你有一定的参考价值。
问题描述:
在npm start启动react项目的时候,出现了如下报错:
The ‘decorators‘ plugin requires a ‘decoratorsBeforeExport‘ option, whose value must be a boolean.
由于依赖包版本更新而导致的错误,项目不能正常启动。
解决方法:
在网上找了很多资料结合实际操作不断尝试后,终于发现了解决方法:
命令行运行:
cnpm i [email protected] --save
(即安装指定版本的roadhog依赖包)
参考issue:https://github.com/ant-design/ant-design-pro/issues/2043
以上是关于The 'decorators' plugin requires a 'decoratorsBeforeExport' option, ...(npm start报错)的主要内容,如果未能解决你的问题,请参考以下文章
Support for the experimental syntax 'decorators-legacy' isn't currently enabled (7:1):(示
react+mobx+antd按需加载 出现Support for the experimental syntax 'decorators-legacy' isn't curr
Is the MIME type 'image/jpg' the same as 'image/jpeg'?
The value of 'list_editable[0]' refers to the first field in 'list_display' ('ti