FiveM and Prisma
Hey, has anyone tried prisma with FiveM? for some day come the node 22 update for it.
I become this error but idk why.
https://pastie.io/fkkldv.less
pls tag me if some one has a idea
23 Replies
You selected the bot's instantaneous insights. Let me compile your answer right away!
I apologize, but I don't have enough information in the provided knowledge sources to directly answer your question about using Prisma with FiveM or the specific error you're encountering.
However, I can provide some general information about Prisma and Node.js version compatibility that may be relevant:
1. Prisma has specific Node.js version requirements. According to the Prisma documentation, Prisma currently supports Node.js versions up to 22.11.
2. There have been issues reported with Prisma on newer Node.js versions. For example, this GitHub issue discusses problems with Node.js 22.13, which was a recent security update.
3. If you're using a very recent version of Node.js, you might encounter compatibility issues with Prisma. In such cases, you may need to either:
- Downgrade your Node.js version to one that's officially supported by Prisma
- Wait for Prisma to update their compatibility with newer Node.js versions
4. The error you're seeing mentions issues with libssl/openssl. This could be related to the Prisma engine's compatibility with your system's OpenSSL version.
For the most up-to-date and specific information about your issue, I recommend checking the official Prisma documentation or their GitHub issues page. If you can't find a solution there, consider opening a new issue on the Prisma GitHub repository with details about your setup and the error you're encountering.
🤔 Alright, thanks for letting us know that there's still some help needed. A team member will reply to you shortly.
In the meantime, please let us know any additional info, questions, or which parts of the answer may need clarification.
seems like a permission issue. have you read up on other people integrating Prisma with FiveM servers? might be a runtime thing
also, are you able to get more specific logs from Prisma?
thanks for your answer. how can i somehow provide even better logs from prisma?
can you try enabling all log levels on your client ('query', 'warn', 'error', 'info')
to see if it's even trying to do anything - it could be that you're passing undefined data
this example seems to be using Prisma in a FiveM environment. might be worth checking out if you haven't already https://github.com/JustinMartinDev/experimental-rp/tree/main/lib/database
GitHub
experimental-rp/lib/database at main · JustinMartinDev/experimental...
Contribute to JustinMartinDev/experimental-rp development by creating an account on GitHub.
yes i had already seen that too. i also looked at the things and used some of them. i switched from esbuild and swc to rollup and had already solved a lot of problems
i see, not much i can do with this, sadly. hard for me to understand what's happening if we can't get any proper errors to indicate what's wrong. Prisma team might have ran into something similar and will be able to assist you properly
afaik it could be anything from runtime to passing invalid data to
.create()
okay, then i have to wait
you could try passing mock data that you know is valid to see if it creates the account. if not, it’s probably something underlying
I have already tried. It really seems to be a runtime error
yeah go figure. have you tried using a non generated client? i had to import from @prisma/client directly in my cjs package
yes, it would be worth trying to do this via the data proxy. but it must also work without it
What is FiveM? I didn’t hear about it before today
Are you referring to this?
https://fivem.net/
FiveM
FiveM is a modification framework for GTA V, allowing you to play multiplayer on customized dedicated servers.
that's correct
yes
any ideas? @Nurul
any other?
okay, then i go to drizzle for this Project. 😦
Apologies for the delay, I haven't tried it but does this guide help you?
https://dev.to/justinmartindev/fivem-x-prisma-orm-3kpl
DEV Community
FiveM x Prisma ORM
⚠️ We are speaking about JavaScript/TypeScript FiveM server ⚠️⚠️ FiveM is a modification for...
Also found this, but seems a bit outdated:
https://github.com/project-error/fivem-typescript-prisma
GitHub
GitHub - project-error/fivem-typescript-prisma: FiveM TypeScript bo...
FiveM TypeScript boilerplate with Prisma. Contribute to project-error/fivem-typescript-prisma development by creating an account on GitHub.
thanks, so from the first link the repo is not complete, I can't test it either and repo number 2 doesn't work either
i have tried so many things esbuild, rollup, vite etc.
but its will not work
Ah, thanks for letting me know. That's unfortunate.
I don't see any existing GitHub Issues with FiveM. Would you mind opening one so that our ORM team can investigate?
https://github.com/prisma/prisma/issues
GitHub
Issues · prisma/prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB - Issues · prisma/prisma
yes i can open tomorrow a ticket 🙂
GitHub
prisma not work with FiveM · Issue #26466 · prisma/prisma
Bug description FiveM is commonjs only. i become this error here when i start my server: K:\Development\Dysenic\fivem\fxserver\server-data>K:\Development\Dysenic\fivem\fxserver\FXServer.exe +exe...
i'm fucking stupid. i forgot to check if the database exists normally prisma had always created it for me
:facepalm:
I am glad to hear that you were able to find the issue 🙌