Error when deploying to Heroku #3754
-
|
Hello! i created a hackernews clone using create-react-app and apollo on the front end and prisma, graphql-yoga and node on the backend. i have tried to deploy with Heroku but am coming across this error that i just cant seem to get my head around and fix. i don't have a .yml file that it asks for with prisma generate, im wondering if thats an older version as the work i have done with prisma i have never been required to do that. i followed the howtographql tutorial but altered it a bit by adding a database that would update after deployment and i used tyepscript. The server on the front end tutorial is different to the server i created when doing the back end tutorial, which does have a. yml file. this is the error when i log $heroku logs --tail Any help would be much appreciated! Source code: https://github.com/benjamin-gambling/hackernews |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
|
Hey @benjamin-gambling 👋 Have you followed this tutorial from our docs? Also, your error seems that you either have not installed |
Beta Was this translation helpful? Give feedback.
-
|
I've hooked Heroku up to my I've had to add the When I do a |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @ryands17 && @richardwardza ! I looked through it again after you suggestions and realized it was trying to install it when deploying in the root folder but my prisma folder was in a server folder, i did have a package.json in there for it to catch it but seemed it wanted it in the root folder so just moved it over and it worked! Had a couple of minor errors after that but got there in the end. Much appreciated for your time, if you guys hadn't replied i may have just given up :) Have a great day! |
Beta Was this translation helpful? Give feedback.
-
|
Hi there, To keep our discussions organized and focused on the most relevant topics, we’re reviewing and tidying up our backlog. As part of this process, we’re closing discussions that have already been marked as answered but remain open. If this discussion still requires further input or clarification, feel free to reopen it or start a new one with updated details. Your contributions are invaluable to the community, and we’re here to help! For more details about our priorities and vision for the future of Prisma ORM, check out our latest blog post: https://www.prisma.io/blog/prisma-orm-manifesto. Thank you for your understanding and ongoing support of the Prisma community! |
Beta Was this translation helpful? Give feedback.
Hey @benjamin-gambling 👋
Have you followed this tutorial from our docs?
Also, your error seems that you either have not installed
@prisma/cliand@prisma/clientlocally or you have an older version of Prisma downloaded someplace. Could you check that and let me know.