Build failed with Railpack & Yarn v4: "failed to solve: lstat /.yarn/sdks: no such file or directory"
alex73630
PROOP

2 months ago

I am currently trying to build a NextJS app inside a Turbo Repo monorepo that uses Yarn v4 without zero-install and I get the following error when I try to build the app after the install step:

copy / /app, /.yarn/patches /app/patches, /.yarn/plugins /app/plugins, /.yarn/releases /app/releases, /.yarn/sdks /app/sdks
3s
Build Failed: build daemon returned an error < failed to solve: lstat /.yarn/sdks: no such file or directory >

As the error says, it cannot find the sdks folder because it doesn't exist in my project (I only have "patches", "plugins" and "releases") however I cannot find how to tell Railpack to ignore this folder without having to build my own railpack.json

Is there a way to fix this?

Thanks!

Solved

2 Replies

alex73630
PROOP

2 months ago

Update: after adding a ".gitkeep" file to fake the existence of the "sdks" folder, I also got the same error for the "versions" folder.

I think that Railpack shouldn't error out like that at build time due to Yarn optional folders not being present.


2 months ago

Howdy!
Glad it got resolved and sorry you were running into this. I went ahead and raised it internally to get more eyes on it and will let you know when we get a response!


Status changed to Awaiting User Response Railway 2 months ago


Railway
BOT

2 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway about 2 months ago


Loading...