Development in NodeJS Error in yarn build

Hey, so I have an issue in that when trying to make a nodejs script for FiveM im getting this error:

cfx> start base
Running build tasks on resource base - it'll restart once completed.
cfx> Couldn't start resource base.
Error: unrecognized flag --typed_array_max_size_in_heap=0
Try --help for options
Administrator:  FiveM OneSync[20068]: c:\gl\builds\4ff63adb\0\cfx\fivem\vendor\node\src\node_platform.cc:392: Assertion `data' failed.
 1: node::AddPromiseHook
 2: node::ParseEncoding
 3: v8::internal::MemoryReducer::MemoryReducer
 4: v8::internal::Heap::RootIsImmortalImmovable
 5: v8::internal::Isolate::OptionalRescheduleException
 6: v8::internal::operator<<
 7: v8::Isolate::Initialize
 8: v8::Isolate::New
 9: node::Start
10: node::Start
11: CreateComponent
12: CreateComponent
13: 00007FFCB6486F59
14: 00007FF61F2D81B3
15: ComponentLoader::ForAllComponents
16: 00007FF61F2D7BDA
17: 00007FF61F2D5D47
18: 00007FF61F2E7824
19: BaseThreadInitThunk
20: RtlUserThreadStart
Building resource base failed.
Error data: yarn failed!

Any help greatly appreciated as im lost for what is wrong, the script is very simple.

on('playerConnecting', (src) => {
  console.log('Hey, Player Connecting!');
});

For now, don’t run the yarn resource.

1 Like

ah okay thank you, is it worth mentioning this on the docs for now?

what does yarn do?

How would someone do this?