© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Error: 🟥 @prisma/react-native failed to initialize, js engine: hermes - Prisma
P
Prisma
•
2y ago
•
2 replies
Levan Parastashvili
Error: 🟥 @prisma/react-native failed to initialize, js engine: hermes
getting this error message for expo da prisma connection
db
.ts in root directory
import
"
@prisma
/react
-native
"
;
import
{ PrismaClient
} from
"
@prisma
/client
/react
-native
"
;
import
{ reactiveQueriesExtension
} from
"
@prisma
/react
-native
"
;
const baseClient
= new PrismaClient
(
{
log
:
[
"query
"
,
"info
"
,
"warn
"
]
,
}
)
;
export const prismaClient
= baseClient
.
$extends
(reactiveQueriesExtension
(
)
)
;
export async function initializeDb
(
)
{
try
{
baseClient
.
$applyPendingMigrations
(
)
;
} catch
(e
)
{
console
.error
(
failed to apply migrations: ${e}
failed to apply migrations: ${e}
)
;
throw new Error
(
"Applying migrations failed
, your app is now in an inconsistent state
. We cannot guarantee safety
, it is now your responsibility to reset the database or tell the user to re
-install the app
"
)
;
}
}
schema
.prisma
generator client
{
provider
=
"prisma
-client
-js
"
previewFeatures
=
[
"reactNative
"
]
}
datasource db
{
provider
=
"sqlite
"
url
=
"
f
i
l
e
:
.
/app
.db
"
}
model User
{
id Int
@id
@default
(autoincrement
(
)
)
name String
surname String
}
Prisma
Join
The official Discord server of Prisma! Find us online at prisma.io
9,819
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
React Native Prisma TurboModuleRegistry error
P
Prisma / help-and-questions
16mo ago
React Native Prisma issue
P
Prisma / help-and-questions
13mo ago
Error: @prisma/client did not initialize yet.
P
Prisma / help-and-questions
2y ago