-
Notifications
You must be signed in to change notification settings - Fork 9
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
Exception in HostFunction: No such file or directory (os error 2) #10
Comments
Hi Dwight 👋 It sounds like you might have the wrong version of Prisma running. Did you edit the schema.prisma file to enable the preview feature as documented in the readme?
You can simply add that line and re-run the generate command:
|
Hey Søren, Thanks for that - I re-ran the installation command from the docs which looks like it should have installed the latest versions of each package. Here are the versions shown from
I copied the
And here is the output from the generate command:
Are there any clues in there? (Do I need to run |
Okay, I think I understand what is happening. You must run I have updated the Readme to makes this more clear. Thank you for reporting this! |
I had been using EAS build - but yes, after running It does feel a little icky to have the |
Excellent! Having the db in the repo isn't strictly required, and I agree it's a bit weird. I think we should have an easy way to connect a db viewer to the db running on a device/simulator during development, and then do away with that db in the repo. Do you have a preference between a standard tool such as SQLite Viewer for VS Code vs Prisma Studio? |
Honestly - I'm brand new to Prisma, so I don't have any knowledge/preference on the matter. Being able to connect directly to the database running on a device or simulator sounds like an incredible tool in debugging and understanding what's going on. I'll close this issue now anyway as the original problem is now resolved. |
…tform Fixes prisma#10 for Mac Catalyst platform, its likely the same fix will work for macOS in the future too. Also fixes an issue when using `NSURL.absoluteString` on a path contains spaces, the spaces would get replaced by `%20`.
… platform Fixes prisma#10 for Mac Catalyst platform, its likely the same fix will work for macOS in the future too. Also fixes an issue when using `NSURL.absoluteString` on a path contains spaces, the spaces would get replaced by `%20`.
Trying to get this going in an Expo project and not having much luck so far.
app.json
schema.primsa
to the root directorynpx prisma@latest generate
runMigrations
from the root componentThe error thrown is
Exception in HostFunction: No such file or directory (os error 2)
I am newer to Prisma so did some doc-diving and thought perhaps I needed to run
npx prisma migrate dev
which generated amigrations
directory,app.db
andapp.db-journal
in my root directory, but this wasn't mentioned in the docs and also didn't solve the problem.The text was updated successfully, but these errors were encountered: