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

Module not found: Can't resolve 'antd/es/ConfigProvider' #43362

Closed
Staefloded opened this issue Jul 4, 2023 · 16 comments
Closed

Module not found: Can't resolve 'antd/es/ConfigProvider' #43362

Staefloded opened this issue Jul 4, 2023 · 16 comments

Comments

@Staefloded
Copy link

Staefloded commented Jul 4, 2023

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
@monokaijs
Copy link

Similar here

@jkirkpatrick24
Copy link

jkirkpatrick24 commented Jul 4, 2023

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.

@ArvindSteamA
Copy link

Same issue here.

@Staefloded
Copy link
Author

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.

@seanmcquaid
Copy link

Same deal for me with the newest Next 13.4.8

@GuanJdoJ
Copy link

GuanJdoJ commented Jul 5, 2023

Module not found: Can't resolve 'antd/es/Button'
  1 | import React from 'react'
> 2 | import {Button} from 'antd'

Same error with Nextjs@13.4.8 antd@5.6.4
And temporarily solved by downgrading Nextjs@13.4.7

@RedJue
Copy link
Member

RedJue commented Jul 5, 2023

Discussions here :#43348

@bennik88
Copy link

bennik88 commented Jul 5, 2023

Same issue.

@nanxiaobei
Copy link
Contributor

Only happens on next@13.4.8, not on next@13.4.7.

@MadCcc MadCcc closed this as completed Jul 5, 2023
@ArvindSteamA
Copy link

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 worked for me remove ^before 13.4.7 the version if you have.

@bombillazo
Copy link
Contributor

Why was this closed? Is this truly fixed if the solution was to downgrade the package? Is this error an issue with Next or does AntD have to update their packages tp be compatible with the latest Next.js version?

@afc163
Copy link
Member

afc163 commented Jul 6, 2023

#43348 (comment)

@ycalm
Copy link

ycalm commented Jul 10, 2023

13.4.9 fix this issue vercel/next.js#52169
another issue vercel/next.js#52307 and can temporarily fix vercel/next.js#52307 (comment)

@bombillazo
Copy link
Contributor

@ycalm

so... its not fixed yet?

@ycalm
Copy link

ycalm commented Jul 11, 2023

@bombillazo this issue has been fixed, but got another, you can get more detail in vercel/next.js#52307

@furqonat
Copy link

now its fixed by using nextjs version 13.4.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests