Prisma: Updates to schema.prisma in dev mode require for the studio to work

Created on 27 Nov 2019  路  3Comments  路  Source: prisma/prisma

Problem

While initialising a new project with the JavaScript GraphQL starter script I encountered a problem with migrations.
When a new field is added, the CLI automatically runs the migration and re-generates the client library, however, the studio throws an error when the browser is reloaded.

In the following example, I added a facebook field and reloaded the browser.

Screen Shot 2019-11-27 at 12 45 57 pm

Suggested Solution

The problem is solved by stoping prisma dev and running it again. Perhaps it makes sense to automatically reload the studio?

bu2-confirmed kinbug

Most helpful comment

All 3 comments

Thanks for reporting @2color and you report this in the perfect timing. We'll release a patch for this within the next 30 min :)
I'll notify you here in the issue and close it once we've released it.

@timsuchanek Can you link to the commit with the fix? I'm curious to see how it was resolved

Was this page helpful?
0 / 5 - 0 ratings