Ant-design-pro: 启动报错 error

Created on 23 Apr 2018  ·  4Comments  ·  Source: ant-design/ant-design-pro

早上先出现这个,https://github.com/sorrycc/roadhog/issues/682 ,然后现在

image
cnpm install
cnpm start

image

Most helpful comment

2. Property right of AssignmentExpression expected node to be of a type ["Expression"]

报错

Property right of AssignmentExpression expected node to be of a type ["Expression"] but instead got null

解决

删除 .webpackrc.js 里的 transform-decorators-legacy

参考

https://github.com/ant-design/ant-design-pro/pull/1345

All 4 comments

Translation of this issue:


start error error

This appears first in the morning, https://github.com/sorrycc/roadhog/issues/682, and now

image
Cnpm install
Cnpm start

image

我也是,@babel 蛮多插件 解析器升级了 从 7.0.0-beta.44 到 7.0.0-beta.45 所以出现了这个问题

@hnsylitao 我看你在roadhog那边提了issue,The new decorators proposal is not supported yet. You must pass the "legacy": true这个解决了吗?pro依赖了这个

2. Property right of AssignmentExpression expected node to be of a type ["Expression"]

报错

Property right of AssignmentExpression expected node to be of a type ["Expression"] but instead got null

解决

删除 .webpackrc.js 里的 transform-decorators-legacy

参考

https://github.com/ant-design/ant-design-pro/pull/1345

Was this page helpful?
0 / 5 - 0 ratings