citizenfx/cfx-server-data

Yarn failed error inside Docker container

LukeWasTakenn opened this issue · 1 comments

Hopefully this is the right place to open this issue.

I get this error from catching them in the yarn_builder.js file whenever Yarn needs to be ran, in this case to build webpack.
This happens to all of the resources that require it, including the Chat resource.
I have the whole resources folder mounted inside of my docker-compose.yml file, so I really can't see why this would be happening.

It works on my Windows local server and builds the resources just fine.

image

Later on after going through all the resources it just tells me that building webpack failed and that Yarn failed.

image

My server artifact build is latest recommended.

Solved, the issue was the way my docker image was setup.