Skip to content
Discussion options

You must be logged in to vote

Finally I find the answer, it's not about nextjs.

I find some code in this project, here it is :

export { DatePicker, Toast, ActionSheet, Carousel, TextareaItem } from 'antd-mobile'

now babel-plugin-import can translate import xxx from 'antd-mobile' to var xxx = require('antd-mobile/lib/xxx'),bu meet the first word 'export', it will not work.
so although I had wrote the Modularized antd-mobile setting in my .babelrc file, the whole package warning still exist.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by juanjuan2wei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant