Skip to content
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

The table main.User does not exist in the current database. #83

Open
micgre0 opened this issue Feb 26, 2024 · 1 comment
Open

The table main.User does not exist in the current database. #83

micgre0 opened this issue Feb 26, 2024 · 1 comment

Comments

@micgre0
Copy link

micgre0 commented Feb 26, 2024

Hi, I just downloaded your repository and tried to run nestjs-prisma. While trying to create a user, I encountered the following error:
The table `main.User` does not exist in the current database.

Am I the only one affected by this error?

Also probably something is not working with prisma 5.10.2. When you run the serve command the error is as follows:
Error: Cannot find module 'nx-recipes/nestjs-prisma/node_modules/@prisma/client/one'

@micgre0
Copy link
Author

micgre0 commented Feb 26, 2024

When you check the generated client in node_modules, it turns out that:

  • In case of first error, dev.db is empty
  • In case of second error, dev.db is not present

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant