-
Notifications
You must be signed in to change notification settings - Fork 2.5k
It failed when building a next application with config output:standalone
.
#27724
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
Comments
Same here |
The issue persists in the latest Nx version (v20.0.11). Thanks!
|
Just delete the scripts in package.json and only keep scripts in
project.json
…On Fri, 8 Nov 2024 at 1:22 PM Muhammad Alfian Rasyidin < ***@***.***> wrote:
The issue persists in the latest Nx version (v20.0.11).
Is there any additional action planned to address this?
@jaysoo <https://github.com/jaysoo> @ndcunningham
<https://github.com/ndcunningham>
Thanks!
Error: File exists (os error 17)
at ***@***.***/node_modules/nx/src/tasks-runner/cache.js:317:17
—
Reply to this email directly, view it on GitHub
<#27724 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC5TWOAZONARH6NVIGBKFGTZ7R7G3AVCNFSM6AAAAABNOPB2H6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRUGIYTIMBWGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Big help, thanks! @ibufu |
I'm getting the same error. I'm trying to understand how not using
How would i convert that into a |
The root cause is that nx run the build script twice. You can use nx show to figure out it. |
I've moved to this structure in my
That
|
I'm also experiencing this issue. On my end, there seems to be some conflict with the cache entries for Nx. It seems it is trying to write to the cache, but the key already exists, which causes this issue. Running the command with |
For my setup, the issue was also gone after adding |
|
This is still broken in the latest NV v21.0.0. It's unfortunate because we have to disable standalone output when running outside of CI, which produces a different build, so it's difficult to run our true production compiled next.js app locally. Steps to reproduce below:
Besides react and next.js, I don't think the choices above make a difference - I haven't tried with a different test runner or style system for example. But just a basic [email protected] standalone next.js build fails pretty easily. A lot of next.js builds are dockerized (to avoid high vercel pricing), which is why standalone is so important. Our team isn't completely blocked because we just disable nx caching in our CI pipeline. And yes, ianldgs for visibility, since we had a brief discussion on #30733 earlier. nx reportNode : 20.19.0 OS : darwin-arm64 Native Target : aarch64-macos pnpm : 10.8.0 nx : 21.0.0
|
Current Behavior
After integrating to an existed pnpm monorepo, it failed when building a next application with config
output:standalone
.Expected Behavior
GitHub Repo
https://github.com/ibufu/nx-next-standalone
Steps to Reproduce
pnpm i
nx build next-app
Nx Report
Failure Logs
Package Manager Version
[email protected]
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: