You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys, I'm very amazed at this version of prisma2 with photongo I want to test, but I have a problem with generating the Photon Go client.
I try to describe all the steps to reproduce:
New instance Ubuntu 18.04
Update apt , install npm and prisma
apt update
apt install npm
npm i -g --unsafe-perm prisma2@alpha # I try all versions
Install Golang and Photongo
wget https://dl.google.com/go/go1.13.5.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.13.5.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
go get github.com/prisma/photongo
following the steps of the tutorial setup README.md, at step 4
mkdir app
nano schema.prisma # Paste all content from Setup Tutorial step 2
go run github.com/prisma/photongo lift save --create-db --name "init"# Works!
go run github.com/prisma/photongo lift up # Works!
Here is the problem, i ran this command and nothnig happens, no error but does not generate my .go file
go run github.com/prisma/photongo generate # Nothing happens
I'm so happy that you already gave Photon Go a shot, but please note that Photon Go is currently under heavy development and an experimental project. Some things are far from ideal right now, especially regarding documentation.
The problem you're having is due to prisma/prisma#934. Until this is fixed, you need to specify an absolute path for the photongo provider, which you can find out with which photongo after installing the library. For example, on Mac this would look like this:
Hi guys, I'm very amazed at this version of prisma2 with photongo I want to test, but I have a problem with generating the Photon Go client.
I try to describe all the steps to reproduce:
New instance Ubuntu 18.04
apt update apt install npm npm i -g --unsafe-perm prisma2@alpha # I try all versions
go run github.com/prisma/photongo generate # Nothing happens
I try to modify the ouput here:
The same result with:
I'm trying a lot of scenarios and always in the command generate nothing happens, I need help!
im sorry for my english! saludos a todos!! 😜
The text was updated successfully, but these errors were encountered: