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

Cannot read property 'locale' of undefined #50

Open
skyunBoss opened this issue Apr 14, 2020 · 3 comments
Open

Cannot read property 'locale' of undefined #50

skyunBoss opened this issue Apr 14, 2020 · 3 comments

Comments

@skyunBoss
Copy link

这样引入会报错

@skyunBoss
Copy link
Author

import RCPicker from 'rc-picker'; <RCPicker />

@menglyf
Copy link

menglyf commented Apr 24, 2020

也遇到这个问题,请问怎么解决的

@Linyan-ma
Copy link

手动引入

import generateConfig from 'rc-picker/lib/generate/moment'
import enus from 'rc-picker/lib/locale/en_US'

并使用

<Picker
        generateConfig={generateConfig}
        locale={enus} >
</Picker>

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