Therefore, I’m wondering if there is some way to stop yarn from building the resource since it is unneeded.
Or if there is some way to upgrade the node engine that FiveM uses (my personal node version is 18, not 16)
One solution would be to make sure the package.json file is not in the root directory, although that is not really that nice of a solution
Things I’ve already tried:
Manually creating a .yarn.installed file, which does work for a little while, but stops working due to yarn’s date checks
Remove yarn/webpack from your server, as they are anyways not needed (not really ideal if you’re gonna sell the resource, but would work if you are developing your own server)
Create another folder in your root resource folder, and move your NodeJS files there, so that the package.json file isn’t in the main resource folder.
Modify the yarn resource to check for some special property and don’t build if that is present