Closed janpio closed 4 years ago
Unable to reproduce with the provided reproduction. Migration just succeeds for me:
Your reproduction indicates you are not using Windows.
I got a better reproduction for this. Try migrating the following model(issue: https://github.com/prisma/prisma2/issues/1860):
model User {
id Int @id @default(autoincrement())
name String @unique
@@index([name])
}
Not a windows specific issue but it indicates error reporting backend is broken or cli is sending faulty error reports.
I am assuming this issue is tracking the fault of error reporting backend.
The actual migrate issue is on my list now to test on windows.
The migrate issue is irrelevant here, you can ignore that and do not need to spend time on it - this is really just about the failure to send error reports.
2020-03-24T15:28:48.148Z sendPanic TypeError: Cannot read property 'signature' of undefined
at Object.<anonymous> (/Users/j42/Dev/prisma2-client-502/node_modules/prisma2/build/index.js:2:1662033)
at Generator.next (<anonymous>)
at fulfilled (/Users/j42/Dev/prisma2-client-502/node_modules/prisma2/build/index.js:2:1660593)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
[?25h[2K[1G[31merror[39m Command failed with exit code 1.
How to find this logs?!
Well the interactive console for sending the reports hides it...
So env DEBUG="*" yarn prisma2 migrate up --experimental 2> hidden-error.txt
😉
Fixed by 5b4b350940bf4015318572a63dc44124f51e5472 in alpha
Can't reproduce in 953! 🎊
Can confirm that sending error reports now works.
package.json
topreview024
yarn
prisma/.env
to point to local MySQL 5.7 installationyarn prisma2 migrate save --experimental
yarn prisma2 migrate up --experimental
See:
after trying to send report:
(preview022 + preview024)