-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Node.JS needs to be updated #2166
Comments
It doesn't make much sense to up the node version when the next LTS releases in two months |
Just to add that Discord.js as well as tRPC are not compatible with v16.9.x, and that Node.js v16 actually EOL'ed back in September due to security concerns regarding OpenSSL. I'm eagerly looking forward to the brave and enthusiastic soul who can take on this important task, knowing that their effort will be much appreciated by many :) |
Hey, just to add to this discussion, Node.js V16 EOL'd a long time ago for multiple high severity CVEs, and many popular libraries are dropping support for the version, causing the V8 runtime to be incompatible with any of these packages. I understand that there are a lot of moving things right now, but at the moment this bottleneck is holding back the ecosystem. |
Since now even Node 20.10.0 LTS is available wouldn't it be high time to update the node version of FiveM? I mean the latest discord.js version which is working right now would be 12.5.3. In this version the replies are not even as you reply as a user but simply the @ of the user in front of the message. |
Cfx. Update it :D. |
I agree, the update should be done, at least to the last LTS. |
Yeah but just like all the other plans cfx make it goes to the bottom of an ever-growing list that will never be resolved. |
A new hero just arise to save us from old nodeJS version : |
Let me update you with latest news. |
So are we finally getting the dozen of other v8 issues that people have been asking about (to no response) resolved or at least looked at? |
Can you please send link to these issues? |
Thanks for the news ! |
And I have brought this up ~6 times in releng.
|
It's been three weeks. Could we get another update, please? Thank you. |
The updates are currently being tested by the community in the experiments section. |
That page is private, so linking to it is meaningless. The vast majority of the community just get the forum "lol 404 go away" page. |
Link removed, so here is some context. |
Any further updates on this? I personally know of devs who have developed with the newer versions of node and have releases waiting on this update. |
The last word was that they were investigating an issue with performance and statebag writing and that it would be the last hurdle until it's pushed to canary, but that was a long time ago. |
Any update on this? Can't use current version of prisma as they need a higher version of node. |
In the experimental section they have not said anything relevant about the current state, although I know that it is not the best, you can use an old version of prisma until they release this. |
Don't worry guys, I know things are still in motion, it will be released when it's ready to be released (hopefully soon 😋). |
Hi... any news? We're still on v16, even on the lastest 11xxx fxserver build...😅 Also, why is the latest recommended build a 7xxx? Are all the latter ones unstable? |
chiming in to complain, one of my resources has been pinning it's dependencies to an old version for a whopping 2 years! can we please get a node version that isn't desperately out of date and EOL?
the recommended build is almost never changed, using the latest available builds is generally preferable. |
Use this website to see the problems with the gamebuilds and choose the recommended one (with no reported issues in the last week) |
Hey, any news? We are having MAJOR problems in our current server development as many packages no longer have node 16 support. So we have to use outdated versions with security issues. |
Hey everyone, I appreciate all the work the team has put into maintaining and improving FiveM, but I wanted to check in on the status of the Node.js update. This issue has been ongoing for a long time, and it's becoming a major blocker for developers. Many essential libraries—including Prisma, AWS SDK, and Discord.js—have dropped support for Node 16, forcing us to use outdated versions that come with security vulnerabilities and lack modern features. This isn't just about convenience; it's holding back the entire FiveM development ecosystem. Developers are struggling to build new resources, and existing ones are becoming increasingly difficult to maintain. We were last told that the update was being tested, but there haven’t been any substantial updates in a while. Can we please get a concrete timeline for when this will be resolved? The community is more than ready to help test if needed, but we need some assurance that this update is actually coming. Thanks for your time and all the effort you put into this project—we just really need this fix ASAP! |
Node 22 support has been merged - 6c7a573 |
For now you need to use FxServer build 12913+ and set |
Updated to 12913. But am still getting the usual error:
|
Are you sure that you also added that to yarn resource? |
You did not specify this as a requirement. But, yes, after adding |
i hope this is not a permanent requirement? Also, looks like I'm getting this when attempting to build EasyAdmin with Node22 enabled:
Yarn build fails. |
You can use preprocessing and use already built resource. Current behavior with automatic webpack/yarn will be deprecated very soon. |
thanks for the feedback! i did some work and refactored my resource to use esbuild and everything seems to be working (so far), good to know that weback/yarn will be deprecated. |
Will there be any replacement for yarn, or is the new way forward to pack/bundle nodejs code? |
esbuild and Rollup are good alternatives. AFAIK you can run Husky post-merge to build the resources after the git pull |
You still can use any you would like, but do it in your own NodeJS environment and move baked script to resources folder. |
I was hoping to still do it part of the server startup, so I can still mantain the code within the main fivem server repo we use, but guessing nodejs resources are going to need to be moved out in to their own repos and built/bundled and copied across. From what I'm reading here. |
There is no need, install Node in the machine and run the build command after the git pull. Remember to add a BTW: If you want to create a different repo for the resources, you can use git submodules and update the main repo when needed |
If you're really lazy, like I am, then you can simply write a github action that runs your esbuild script (or whatever you use) after pushes to a branch and commits the built files, you don't need to gitignore the output files unless you want to build them locally explicitly. |
Prisma will not work.
|
Could you please provide sample resource with minimal code to reproduce this issue? |
sure give some minutes |
Steps (latest fx server):
|
are there perhaps some ideas for the problem? |
i'm fucking stupid. i forgot to check if the database exists normally prisma had always created it for me |
The latest version of discord.js forces you to upgrade from version 16.
The text was updated successfully, but these errors were encountered: