You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error (NOBRIDGE) ERROR Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'Prisma' could not be found. Verify that a module by this name is registered in the native binary.
#51
Open
GrigorevDanil opened this issue
Dec 12, 2024
· 2 comments
Hello, please help me. It seems that I set up everything as per the instructions, created a separate file for working with the database
@/dbContext
`
import { PrismaClient } from "@prisma/client/react-native";
import { reactiveHooksExtension } from "@prisma/react-native";
export async function initializeDb() {
try {
baseClient.$applyPendingMigrations();
} catch (e) {
console.error(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"
);
}
}
`
But when using baseClient , extendedClient and initializeDb. Causes the above error. Perhaps I don't need to write this question here, but I do not know where to ask it.
The text was updated successfully, but these errors were encountered:
Hello, please help me. It seems that I set up everything as per the instructions, created a separate file for working with the database
@/dbContext
`
import { PrismaClient } from "@prisma/client/react-native";
import { reactiveHooksExtension } from "@prisma/react-native";
export const baseClient = new PrismaClient();
export const extendedClient = baseClient.$extends(reactiveHooksExtension());
export async function initializeDb() {
try {
baseClient.$applyPendingMigrations();
} catch (e) {
console.error(
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"
);
}
}
`
But when using baseClient , extendedClient and initializeDb. Causes the above error. Perhaps I don't need to write this question here, but I do not know where to ask it.
The text was updated successfully, but these errors were encountered: