Yarn Failed to build
Errors like yarn failed, uv_close, or missing modules when starting op-crime are usually caused by outdated artifacts. Updating to a stable artifact version often fixes the issue instantly.
Build / Startup Error Fix
If you see errors like these while starting op-crime, the issue is usually caused by outdated artifacts, not by the resource itself.
Example errors
Yarn / build error
Running build tasks on resource op-crime - it'll restart once completed.
Couldn't start resource op-crime.
[yarn] yarn install v1.22.5
[yarn] [1/4] Resolving packages...
[yarn] success Already up-to-date.
[yarn] Done in 0.06s.
[yarn] Error: Assertion failed: 0 (../deps/uv/src/unix/core.c: uv_close: 234)
Building resource op-crime failed.
Error data: yarn failed!Missing module error
Error loading script server/server.js in resource op-crime: Error: Cannot find module 'image-js'
Require stack:
- ./QBox Passion Project/txData/qbox_7BFF69.base/resources/[gangs]/op-crime/dummy.jsPrimary fix
In most cases, the correct fix is to update your server artifacts.
op-crime may fail to build or start properly on older artifacts.
Before troubleshooting Yarn, Node, or dependencies, make sure you are running a recent artifact version.
You can check the latest recommended artifacts here:
https://artifacts.jgscripts.com/
Use that page to see which artifacts are currently up to date and do not have reported issues.
Why this happens
These errors often appear because the server is running on older or problematic artifacts that are not fully compatible with the resource build process.
This can result in issues such as:
yarn faileduv_close: 234Cannot find module ...resource build failures
startup crashes during dependency handling
Even if the resource files are correct, outdated artifacts can still cause the resource to fail.
Recommended fix order
1. Update artifacts first
Before changing anything in the resource itself, update your server artifacts to a newer stable version.
What to do
Check your current artifact version
Visit artifacts.jgscripts.com
Compare your current version with the latest recommended ones
Update to a newer artifact that has no reported issues
Restart the server and test
op-crimeagain
Do this before reinstalling packages or editing dependencies.
2. Restart the resource after updating
After updating artifacts, restart the whole server or run:
If the resource starts correctly after the artifact update, no further action is needed.
If the issue still happens after updating artifacts
If you already updated artifacts and the issue continues, follow the steps below.
Reinstall dependencies
Go to the resource folder (this is example, use real directory on your server):
Remove old install files:
Then reinstall:
If needed, clean the Yarn cache first:
Fix Cannot find module 'image-js'
If you still get this error after updating artifacts, install the missing package manually:
Or with npm:
Then restart the resource.
Last updated