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)

Most upvoted comments

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.

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

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.

This works Thanks But the issue still needs to be fixed though.