prisma-examples icon indicating copy to clipboard operation
prisma-examples copied to clipboard

Firebase functions example app

Open shigurenimo opened this issue 4 years ago • 3 comments

I want a sample project using FIrebase functions and TypeScript and nexus/schema

shigurenimo avatar Apr 20 '20 15:04 shigurenimo

I made a sample project for Firebase functions and I tried to use output property of generator to upload prisma/client to Cloud Functions but I don't know how to compile this library.

generator client {
  provider      = "prisma-client-js"
  output        = "../functions/_generated/client"
}

When I deploy a directory I get this error message because prisma client library genereated contains query-engine-darwin and JS file.

You most likely forgot to initialize the Prisma Client. Please run `prisma2 generate` and try to run it again

shigurenimo avatar Apr 20 '20 15:04 shigurenimo

facing same issue here, any solution?

tylim88 avatar Nov 19 '20 15:11 tylim88

i use yarn instead of npm, able to get rid of the error

face unable to connect database error instead, i think this has to do with the public address, but this is another story(https://github.com/prisma/prisma/issues/525#issuecomment-730514332)

tylim88 avatar Nov 19 '20 16:11 tylim88