-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. #2043
Comments
目测是babel的问题 |
@chenshuai2144 第一种是使用cnpm命令行工具有报错了,但是第二种方式直接 clone git 仓库正常打开访问的,没有报错的。 |
我也遇到这种情况了,怎么解决? |
我的情况和你一模一样呢 |
怎么解决 |
如果是测试,把项目删掉,重新Pro new新建项目,然后把项目中的node_modules文件删除,然后npm install PS:不要用cnpm |
@dead-horse 看看?tnpm 和 cnpm 都有问题,npm 是好的,pro 的 master 下载下来 install 和 start 就能重现。 应该又是某个 babel 依赖模块不统一的问题,@sorrycc 看看能不能固定一下。 |
同上, 一样的问题. |
尝试使用npm安装,安装成功。但请求接口时,proxy失败: |
同报这个错误,tnpm 报错,删掉node_modules用npm重装之后ok |
修改 package.json 即可,作为暂时的方案: cnpm: {
"cnpm": {
"mode": "npm"
}
} tnpm: {
"tnpm": {
"mode": "npm"
}
} |
依赖的模块要统一锁下版本 |
使用 cnpm/tnpm 的可以尝试删除 stylelint,stylelint 依赖了 @babel/core@rc,和 roadhog@2.x 依赖的 @babel/core@beta 在 cnpm/tnpm 下提升依赖时有冲突。 |
@ql434 roadhog@2.x 依赖的 @babel 是锁了版本的。 |
我也是这个问题,有解决办法了吗 |
我们的环境目前只能用cnpm,这个问题可以解决吗? |
我这里使用 npm install 也出现这个问题了 |
同问,已尝试删除stylelint相关,安装依赖之后还是不能启动。请问有没有临时解决的方案呢? |
我使用npm解决了问题 |
看 @zinkey 的回复。 |
伴随着babel的升级,感觉带来不少问题,一不做二休,2.0发正式版吧 |
以前的项目重新install就出现这种问题,改成npm install后,能正常启动,但是代理似乎出问题,所有请求接口都出现超时400现象。 |
@sorrycc npm install成功后的代理问题,有临时解决方案吗? |
已解决: |
尝试了将cnpm换回npm 报新的错误
没有使用stylelint只有用eslint,而且只在devDep里 |
proxy: { |
删除models之后用npm |
遇到问题的朋友可以试下 |
@sorrycc 解决了,谢谢 |
我的也出现同样的问题,请问是怎么解决的 |
@sorrycc 谢谢 安装 |
@sorrycc 安装roadhog@2.5.0-beta.1完美解决,赞一个,多谢~ |
唉,Basement 构建失败,原来这里这么多人遇到。。。 |
@sorrycc perfect |
@m26597 先更新npm再试试 然后 |
I have tried this way. It doesn't work
| |
mengxj
|
|
邮箱:mengxj2113@163.com
|
Signature is customized by Netease Mail Master
On 09/26/2018 18:04, kateli wrote:
@m26597 先更新npm再试试
npm i -g npm
然后
npm set registry https://registry.npmjs.org/
rm -rf node_modules/
npm cache clean --force
npm cache verify
npm install
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I am confused
| |
mengxj
|
|
邮箱:mengxj2113@163.com
|
Signature is customized by Netease Mail Master
On 09/26/2018 18:25, m26597 wrote:
I have tried this way. It doesn't work
| |
mengxj
|
|
邮箱:mengxj2113@163.com
|
Signature is customized by Netease Mail Master
On 09/26/2018 18:04, kateli wrote:
@m26597 先更新npm再试试
npm i -g npm
然后
npm set registry https://registry.npmjs.org/
rm -rf node_modules/
npm cache clean --force
npm cache verify
npm install
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
这个问题貌似还没有比较好的解决方案,请大神出来解决一下 |
遇到问题的朋友可以试下 roadhog@2.5.0-beta.1,亲自试了下可以解决这个问题。 |
…rt' option, whose value must be a boolean.(ant-design/ant-design-pro#2043)
roadhog@2.5.0-beta.1 works for me. |
在项目中使用roadhog@2.5.0-beta.1 测试版是不是八成要废啊,会有什么影响么@sorrycc |
已解决:使用 cnpm 出现, 删除 node_modules 所有文件再使用 npm 重新安装依赖。 |
我也出现了这个问题,我用官方的脚手架生成的packa.json文件里面有@babel/core和babel-core都有,只需要把babel-core卸载就可以了,用npm un babel-core |
新入职公司,是用 pro 魔改的项目,里面还用什么 antd-bsc,升级以后也是报这个错误,采用上面@kateli的方法,删除了npm cache 以后,用 npm 安装就好了~ |
@sorrycc |
|
删除node_modules |
当npm start的时候不能启动完成后会自动打开浏览器访问,后来报错的是The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean.
怎么解决报错信息呢?
The text was updated successfully, but these errors were encountered: