ant-design / ant-design-landing

:mountain_bicyclist: Landing Pages of Ant Design System
https://landing.ant.design/
MIT License
6.24k stars 645 forks source link

为什么按照指导走demo还是跑不起来 #332

Open iyenli opened 3 years ago

iyenli commented 3 years ago

./src/Home/less/antMotionStyle.less (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-8-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-8-3!./node_modules/less-loader/dist/cjs.js??ref--5-oneOf-8-4!./src/Home/less/antMotionStyle.less) TypeError: this.getOptions is not a function

jljsj33 commented 3 years ago

哪个 demo ???

hanwenbo commented 3 years ago

可以的 多试试吧

jakehsiao commented 3 years ago

我也遇到了同样的问题! 就是用编辑器 下载下来的Home.zip 用create-react-app的方式 尝试跑 结果跑不起来 报错信息都是TypeError: this.getOptions is not a function

Fuyun791 commented 3 years ago

landing-create-react-app-example 这个demo可以跑通,但是自己跟着文档构建项目会出错,估计和某些包的版本有关吧

jljsj33 commented 3 years ago

less-loader 版本问题???降个级试试。。

jljsj33 commented 3 years ago

https://ant.design/docs/react/use-with-create-react-app-cn#%E5%AE%89%E8%A3%85%E5%92%8C%E5%88%9D%E5%A7%8B%E5%8C%96 看这个吧,,

lishaoh commented 3 years ago

@Fuyun791 将less-loader版本从8.1.1降级到7.3.0就可以了

jluisrojas commented 3 years ago

These package versions solved it for me

"less": "^4.1.1", "less-loader": "^7.3.0",

a516117636 commented 3 years ago

我都放弃治疗了,原来是因为这个啊

ZFYNFT commented 1 year ago

These package versions solved it for me

"less": "^4.1.1", "less-loader": "^7.3.0",

怎么才能降级啊?