ant-design / antd-mobile-samples

antd-mobile samples
1.15k stars 1.09k forks source link

运行create-react-app项目,yarn build 打包错误提示 #14

Closed MotorFu closed 7 years ago

MotorFu commented 7 years ago

设备:macbook pro yarn --version 0.24.6 问题: create-react-app git:(master) ✗ yarn build yarn build v0.24.6 $ node scripts/build.js Creating an optimized production build... Failed to compile.

./src/App.js 51:10-16 'antd-mobile' does not contain an export named 'Button'.

error Command failed with exit code 1.

请问是什么问题?求指教

已经解决

sasikanth-lanka commented 7 years ago

Error still persists, any fix?

paranoidjk commented 7 years ago

@zlanka Works fine for me, see official demo, and doc

If you got any problems, please file a new issue with reproduible demo.

sasikanth-lanka commented 7 years ago

@paranoidjk there is no antd-mobile inclusion in the config/webpack.config.prod.js, how would build even work? I made start work but failed to make build work using official documentation mentioned here.