ant-design: Module not found: Can't resolve 'antd/es/ConfigProvider'
Reproduction link
https://github.com/Staefloded/antd-bug
Steps to reproduce
Wrap <Component />
with ConfigProvider
What is expected?
No error should be shown
What is actually happening?
Module not found: Can’t resolve ‘antd/es/ConfigProvider’
Environment | Info |
---|---|
antd | 5.6.4 |
React | 18.2 |
System | M2 MacBook Pro |
Browser | Chrome |
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 4
- Comments: 16 (5 by maintainers)
I think this a compatibility issue with the most recent NextJS release.
If you install version 13.4.7 of next, everything works as expected, but bumping to 13.4.8 surfaces this error.
Discussions here :https://github.com/ant-design/ant-design/discussions/43348
now its fixed by using nextjs version 13.4.16
@bombillazo this issue has been fixed, but got another, you can get more detail in https://github.com/vercel/next.js/issues/52307
13.4.9 fix this issue https://github.com/vercel/next.js/pull/52169 another issue https://github.com/vercel/next.js/issues/52307 and can temporarily fix https://github.com/vercel/next.js/issues/52307#issuecomment-1627372291
https://github.com/ant-design/ant-design/discussions/43348#discussioncomment-6349922
This works Thanks But the issue still needs to be fixed though.