-
Notifications
You must be signed in to change notification settings - Fork 26.1k
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
Next.js 12 failing with react-icons
#30486
Comments
@styfle I had a weird issue while using react-icons. it works but generated following warning in dev mode. |
Guess you shouldn't use react-icons in the api files? They are server side only. Importing react-icons here just doesn't make any sense. |
To temporarily work around this you can use: // next.config.js
module.exports = {
outputFileTracing: false
} And remove it once this is fixed 👍 |
Hi, this has been updated in |
It's out on 12.0.3 now 🎉 |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
What version of Next.js are you using?
12.0.1
What version of Node.js are you using?
14
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
next build
fails to bundle necessary files forreact-icons
Expected Behavior
Should be able to run bundled functions from
nft.json
To Reproduce
Trace from
next build
is:The trace from
nft
is:Notice the react-icons/index.js is missing from
next build
which causes the following:The text was updated successfully, but these errors were encountered: