-
-
Notifications
You must be signed in to change notification settings - Fork 51.4k
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' #43572
Labels
Comments
NextJS convert |
Create the issue to the NextJS: vercel/next.js#52703 |
@zombieJ Is it same bug in babel-plugin-import? |
QRCode is provided after v5, so there's no conflict with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction link
/~https://github.com/alyosha-30emeciel/antd-qrcode-bug
Steps to reproduce
npm run dev
-> browse to http://localhost:3000
-> ./src/app/page.tsx:3:0
Module not found: Can't resolve 'antd/lib/qr-code'
What is expected?
The firt example from ./src/app/page.tsx:3:0
Module not found: Can't resolve 'antd/lib/qr-code' with a QRCode runs.
What is actually happening?
./src/app/page.tsx:3:0
Module not found: Can't resolve 'antd/lib/qr-code'
1 | 'use client'
2 | import React from 'react';
https://nextjs.org/docs/messages/module-not-found
I created the example with:
1/ npx create-next-app@latest
2/ then followed antd's Getting Started
The text was updated successfully, but these errors were encountered: