Skip to content
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

Open
robert4049 opened this issue Aug 20, 2023 · 24 comments
Open

Node.JS needs to be updated #2166

robert4049 opened this issue Aug 20, 2023 · 24 comments
Assignees
Labels
enhancement Feature or other request that adds functionality or improved usability ScRT: JS Issues/PRs related to the JavaScript scripting runtime

Comments

@robert4049
Copy link

The latest version of discord.js forces you to upgrade from version 16.

@AvarianKnight
Copy link
Contributor

It doesn't make much sense to up the node version when the next LTS releases in two months

@tabarra
Copy link
Contributor

tabarra commented Oct 28, 2023

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 :)

@wowjeeez
Copy link

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.

@mrclmtll
Copy link

mrclmtll commented Jan 9, 2024

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 you would have another 3 years of pause and we would be happy since the last commit to citizenfx/node was on December 20th 2021 (a29ea011b5a8073d866c57715ecd404051f907f4).

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.

@gottfriedleibniz gottfriedleibniz added the ScRT: JS Issues/PRs related to the JavaScript scripting runtime label Feb 1, 2024
@respectdevelopment
Copy link

Cfx. Update it :D.

@MehdiBenbahri
Copy link

I agree, the update should be done, at least to the last LTS.

@Jye-AU
Copy link

Jye-AU commented Jun 12, 2024

FiveM is running Node JS v16.9.1 which was released on the 10 Sep 2021. Node JS is now at v20.14.0 LTS . this makes it harder to create new resources for FiveM. are there any plans to update this?

Example trying to use nuxt JS
image

@thelindat
Copy link
Contributor

are there any plans to update this?

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.

@MehdiBenbahri
Copy link

MehdiBenbahri commented Jun 12, 2024

are there any plans to update this?

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 :
#2479

@prikolium-cfx
Copy link
Collaborator

prikolium-cfx commented Jun 12, 2024

Let me update you with latest news.
Right now we have everything ready and testing NodeJS + client side V8 updates in-house.
I can't give you exact estimation on such update, but hope that we can deliver it to you in next 2 weeks, after proper testing.

@thelindat
Copy link
Contributor

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?

@prikolium-cfx
Copy link
Collaborator

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?

@MehdiBenbahri
Copy link

Let me update you with latest news. Right now we have everything ready and testing NodeJS + client side V8 updates in-house. I can't give you exact estimation on such update, but hope that we can deliver it to you in next 2 weeks, after proper testing.

Thanks for the news !
That will open a huge possibility for us.

@thelindat
Copy link
Contributor

And I have brought this up ~6 times in releng.
image
image

const rv = refFunctionsMap.get(ref).callback(...unpack(argsSerialized));

@VIRUXE
Copy link

VIRUXE commented Jul 1, 2024

Let me update you with latest news. Right now we have everything ready and testing NodeJS + client side V8 updates in-house. I can't give you exact estimation on such update, but hope that we can deliver it to you in next 2 weeks, after proper testing.

It's been three weeks. Could we get another update, please? Thank you.

@martonp96
Copy link

martonp96 commented Jul 8, 2024

Let me update you with latest news. Right now we have everything ready and testing NodeJS + client side V8 updates in-house. I can't give you exact estimation on such update, but hope that we can deliver it to you in next 2 weeks, after proper testing.

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.

@DemmyDemon
Copy link

The updates are currently being tested by the community in the experiments section: https://forum.cfx.re/t/nodejs-20-and-v8-update/5246559

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.

@martonp96
Copy link

The updates are currently being tested by the community in the experiments section: https://forum.cfx.re/t/nodejs-20-and-v8-update/5246559

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.
The experiments section is new and currently only a few people have access. If someone wants to try the node updates regardless, they can try to request trough this link: https://forum.cfx.re/g/experiments
Keep in mind, that its only a status update about work on node, its not forgotten. Also requesting access will not guarantee that you wil get accepted.

@robert4049
Copy link
Author

The updates are currently being tested by the community in the experiments section: https://forum.cfx.re/t/nodejs-20-and-v8-update/5246559

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. The experiments section is new and currently only a few people have access. If someone wants to try the node updates regardless, they can try to request trough this link: https://forum.cfx.re/g/experiments Keep in mind, that its only a status update about work on node, its not forgotten. Also requesting access will not guarantee that you wil get accepted.

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.

@jellyton255
Copy link

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.

@FynniX
Copy link

FynniX commented Aug 27, 2024

Any update on this? Can't use current version of prisma as they need a higher version of node.

@DaniGP17
Copy link
Contributor

DaniGP17 commented Aug 27, 2024

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.

@tabarra
Copy link
Contributor

tabarra commented Aug 27, 2024

Don't worry guys, I know things are still in motion, it will be released when it's ready to be released (hopefully soon 😋).
Just need to be patient a little more.

@riccardoconte7904
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature or other request that adds functionality or improved usability ScRT: JS Issues/PRs related to the JavaScript scripting runtime
Projects
None yet
Development

No branches or pull requests