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
升级 2.1.0 后仍然会有 moment locales 找不到的问题 #3508
Comments
#3204 (comment) 里解决了直接 楼主应该是直接 |
Thanks @BANG88 ! I fixed it by aliasing 'moment' to 'moment/moment.js' in my webpack config (resolve: { alias: { moment: 'moment/moment.js' } }). |
@afc163 我确实是通过 |
看看 locale-provider 是怎么调用的,你的信息里是直接走了 lib 目录的。
|
@afc163 好像找到问题了,为了在用户切换语言的时候也切换 antd 组件的语言,我在 |
Ok~ 总之,根本原因还是 moment 的问题,webpack 的各种 hack 配置目前还是少不了。 |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
环境:
报错:
所有依赖:
The text was updated successfully, but these errors were encountered: