Skip to content

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

@nikolasburk

Description

@nikolasburk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions