Skip to content
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

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

Closed
MotorFu opened this issue Jun 21, 2017 · 3 comments
Closed

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

MotorFu opened this issue Jun 21, 2017 · 3 comments
Assignees

Comments

@MotorFu
Copy link

MotorFu commented Jun 21, 2017

设备: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.

请问是什么问题?求指教

已经解决

@MotorFu MotorFu closed this as completed Jun 21, 2017
@sasikanth-lanka
Copy link

Error still persists, any fix?

@paranoidjk
Copy link
Contributor

@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
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants