-
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
npm run build
failed + unused function is bundled to .next output folder
#17208
Comments
npm run build
fails + unused function is bundled to .next output foldernpm run build
failed + unused function is bundled to .next output folder
Feel free to investigate your issue and send a PR. |
Solved it by seperating |
Interesting, not sure what happens there. Potentially it's just the dependency that you're using 🤔 Can this be closed then if it's resolved? |
Yes you can close this issue as I solved it with a workaround. |
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. |
Bug report
Describe the bug
Build fails with non indicative error.
If I remove one of the packages
jsonwebtoken
orargon2
, the build succeded.I don't know why, but splitting the files - one file importing
argon2
and one file importingjsonwebtoken
solves the problem. Why?!But together I get a weird build error...
To Reproduce
npm install
npm run build
Expected behavior
Build succeeded.
Screenshots
System information
The text was updated successfully, but these errors were encountered: