-
Notifications
You must be signed in to change notification settings - Fork 2.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
Terser + next 14 build error #21611
Comments
I tried this out and it is working as expected. Could you create a small repro of this so I can take a look? |
Do you use turbo or webpack? I think it is related to the SWC packages. I'll try and do a repro |
This seems to be the issue pnpm why pdfjs-dist
Legend: production dependency, optional only, dev only
dependencies:
react-pdf 7.3.1
└── pdfjs-dist 3.6.172 |
Downgrading to next 14.0.1 fixes it. Upgrading to 14.0.2 breaks it again. I can also see the build logs look completely different, so next must've changed the way they do builds in v14.0.2 |
I am not sure if this is a Nx-related issue. |
It's a nextjs issue, but nx supports nextjs breaking changes with migrations, so I think it belongs here. |
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I upgrade from nx 17.2.7 to nx 18.0.1 using
nx migrate latest
and running the migrations.As part of this migration, my version for
nextjs
moved from 13.5.2 to 14.0.4When I try to build my nextjs app I get the following error
Related:
vercel/next.js#60837
Expected Behavior
build should not fail
GitHub Repo
No response
Steps to Reproduce
nx migrate latest
pnpm i
nx build myApp
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: