Hey everyone. I'm trying to run an Android expo build on a project with the react-native-prisma.
Here is my branch for reference: https://github.com/luketurnbull/todo-native-app/tree/lukes-local-first-todo
I'm getting the following error in the Run gradlew step.
Error: Unable to resolve module .prisma/client/react-native from /home/expo/workingdir/build/node_modules/@prisma/client/react-native.js: .prisma/client/react-native could not be found within the project or in these directories:
node_modules
1 | module.exports = {
2 | ...require('.prisma/client/react-native'),
| ^
3 | }
4 |
prisma.schema:
generator client {
provider = "prisma-client-react-native"
previewFeatures = ["reactNative"]
}
datasource db {
provider = "sqlite"
url = "file:./app.db"
}
model Todo {
id Int @id @default(autoincrement())
title String
completed Boolean @default(false)
}
eas.json:
{
"cli": {
"version": ">= 5.9.1"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal",
"android": {
"buildType": "apk"
}
},
"production": {
"android": {
"buildType": "apk"
}
}
}
}