prisma-nuxt icon indicating copy to clipboard operation
prisma-nuxt copied to clipboard

"✘ Prisma schema file does not exist. " should not be an error

Open nikolasburk opened this issue 1 year ago • 1 comments

When I set up the Prisma Nuxt module and run the dev server for the first time in a fresh Nuxt project, I see the following output:

✔ Prisma CLI is already installed.                                                      1:05:25 PM

 ERROR  ✘ Prisma schema file does not exist.                                             1:05:25 PM

Initializing Prisma project...                                                           1:05:25 PM

                                                                                         1:05:27 PM
✔ Your Prisma schema was created at prisma/schema.prisma
  You can now open it in your favorite editor.

warn You already have a .gitignore file. Don't forget to add .env in it to not commit any private information.



 ERROR  ✘ Database migrations folder does not exist.        

Image

The red " ERROR ✘" feels very alarming, but it's actually just a detection of the state of my project. IMO it's not really an error and should not be called as such because it gives me as a user the feeling that something is wrong or failed.

Let's turn this into an "INFO" line or something like this that's less alarming and doesn't give users a feeling that something is wrong.

nikolasburk avatar Jan 13 '25 19:01 nikolasburk

Same for the " ERROR ✘ Database migrations folder does not exist. ".

nikolasburk avatar Jan 13 '25 19:01 nikolasburk