-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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/lib/qr-code' #52703
Comments
Hi @zombieJ, I'd like to check this, is this issue open? |
@naveen8801 Please feel free to help on this : ) |
May I try to add an exception in my project's 'next.config.js' file as a workaround ? /** @type {import('next').NextConfig} */
const nextConfig = {
modularizeImports: {
'antd/lib/QRCode': {
transform: 'antd/lib/qrcode',
},
},
}
module.exports = nextConfig |
In most case, naming can be |
Related/duplicate issue: #52307 I'm going to close this in favor, feel free to comment further there! |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
CLI (create-next-app)
Link to the code that reproduces this issue or a replay of the bug
https://codesandbox.io/p/github/alyosha-30emeciel/antd-qrcode-bug/csb-6xksxs/draft/happy-burnell?file=/package.json:18,20
To Reproduce
just run
npm start
Describe the Bug
Expected Behavior
QRCode path should be
qrcode
, notqr-code
. NextJS convert to the wrong path.Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: