【发布时间】:2020-06-18 19:44:59
【问题描述】:
我打算重新部署一个 web 应用程序,所以我试图运行 yarn build,它遇到了这个错误。
我用的是Ant Design,之前也做过yarnject,google了下还是不行,有没有遇到过这个是错误的?有什么解决办法吗?谢谢!
yarn run v1.22.0
$ react-app-rewired build
Creating an optimized production build...
Failed to compile.
./node_modules/antd/es/style/index.less
TypeError: this[MODULE_TYPE] is not a function
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
【问题讨论】:
标签: reactjs create-react-app yarnpkg antd