Open phibr0 opened 1 year ago
To sum up:
I'm also running into this. Can't use temporal in Next JS actions with the latest version of Next (14.0.2).
As a workaround, I manually downgraded to v14.0.1 to get the build to work.
The range of swc_core: v0.86.10
~ v0.86.40
.
I updated the results.csv file with the build results of different versions and configurations.
I tested:
I just recently discovered that you can still use babel instead of SWC, and the results show that SWC might not actually be the root cause here. In fact, the results are pretty much the same no matter if SWC or babel was used.
Interestingly, there were a few versions where the default webpack config works, but once minifying or babel is used it fails again. Turbopack works on all versions.
Related to https://github.com/vercel/next.js/pull/58573
Link to the code that reproduces this issue
https://github.com/phibr0/next14-prod-build-failure
To Reproduce
See Readme or:
gh repo clone phibr0/next14-prod-build-failure
cd next14-prod-build-failure
pnpm compare
Current vs. Expected behavior
Verify canary release
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure, SWC transpilation
Additional context
CSV containing build results against all recent releases: https://github.com/phibr0/next14-prod-build-failure/blob/main/results.csv
next build --experimental-turbopack
) function normally.