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.
The problem is solved by stoping prisma dev
and running it again. Perhaps it makes sense to automatically reload the studio?
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.
The patch is out! https://github.com/prisma/prisma2/releases/tag/2.0.0-preview017.1
@timsuchanek Can you link to the commit with the fix? I'm curious to see how it was resolved
Most helpful comment
The patch is out! https://github.com/prisma/prisma2/releases/tag/2.0.0-preview017.1